You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You sometimes don't want to rebase the URLs, for example when everything stays in the same directory. So if I previously had a folder src/css/ and in it a file with this CSS:
@import'fonts.css'
clean-css-cli does this:
@import'src/css/fonts.css'
Now the style breaks because there is no adjacent src folder to the CSS file.
On the contrary, this would be fine (added slash in front of path to make it absolute):
@import'/src/css/fonts.css'
Solutions:
Either fix the rebase algorithm to add a / to the rebased URL to make it absolute
Give the user an option to overwrite this behaviour. I tried version 4.3, which still had --skip-rebase enabled, and that worked (but threw a bunch of other errors/warnings, so can't use it in prod)
The text was updated successfully, but these errors were encountered:
You sometimes don't want to rebase the URLs, for example when everything stays in the same directory. So if I previously had a folder
src/css/
and in it a file with this CSS:clean-css-cli does this:
Now the style breaks because there is no adjacent
src
folder to the CSS file.On the contrary, this would be fine (added slash in front of path to make it absolute):
Solutions:
/
to the rebased URL to make it absolute--skip-rebase
enabled, and that worked (but threw a bunch of other errors/warnings, so can't use it in prod)The text was updated successfully, but these errors were encountered: