Closed
Description
Urls are getting rebased always, even when --with-rebase
option is not used.
Both of these rebase urls and produce the same results:
cleancss assets/css/styles.css -o dist/css/styles.min.css
cleancss assets/css/styles.css -o dist/css/styles.min.css --with-rebase
In the source css, I have font and img references like these:
url('../fonts/roboto-400-latin.woff2')
url('../img/bg.jpg')
And with v5.0.0, I get these urls in the minified file, both with and without --with-rebase
:
url('../../assets/fonts/roboto-400-latin.woff2')
url('../../assets/img/bg.jpg')
With previous v4.3.0, I used --skip-rebase
and was getting:
url('../fonts/roboto-400-latin.woff2')
url('../img/bg.jpg')
I'm running macOS Big Sur 11.2.
Activity
jakubpawlowicz commentedon Feb 10, 2021
Hey @eneko89 - can you please provide more details, as described in https://github.com/jakubpawlowicz/clean-css-cli/blob/master/CONTRIBUTING.md ? Thanks!
eneko89 commentedon Feb 10, 2021
Sure, I'll edit.
[-]New v5.0.0 version is always rebasing urls, even when --with-rebase is not used[/-][+]New v5.0.0 version is always rebasing urls[/+]eneko89 commentedon Feb 10, 2021
Done @jakubpawlowicz.
Btw, thanks for your quick response and sorry for the inconvenience 🙂
jakubpawlowicz commentedon Feb 10, 2021
No problem @eneko89 Let me have a look at it!
Fixes #54 - rebasing is still on if output option is used.
jakubpawlowicz commentedon Feb 11, 2021
It's fixed in 5.0.1 on npm. Cheers!
eneko89 commentedon Feb 11, 2021
I can vouch for that. Thanks! 🍻