Conversation
This optimisation disables relative paths when the output path is longer
than the input path - but the result of that is that the generated CSS
ends up pointing to URLs that are relative to the current directory
instead of being relative to the generated CSS file.
input: test-in/style.css
```
.foo { background-image: url("./local.png"); }
```
output: test-out/style.css
```
.foo { background-image: url("../test-in/local.png"); }
```
output: test-out/nested/path/style.css
```
.foo { background-image: url("test-in/local.png"); }
```
I'm getting a ton of error messages in my logs like: ``` Deprecated: Return type of TBela\CSS\Element::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in [...]/src/ArrayTrait.php on line 72 ``` and ``` Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in [...]/src/Value.php on line 590 ```
…cit nullable type must be used instead
… colon (:) instead
…either be compatible with ArrayAccess::offsetSet(mixed , mixed ): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Remove an optimisation which breaks relative URLs
use relative paths in sourcemap
…into 8ctopus-fix-implicit-nullable
…shish-deprecations
…o 8ctopus-fix-array-access
Fix FontFamily unclosed method
Fix deprecations on v.next branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.