Skip to content

New v5.0.0 version is always rebasing urls #54

Closed
@eneko89

Description

@eneko89

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions