question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New v5.0.0 version is always rebasing urls

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
jakubpawlowiczcommented, Feb 11, 2021

It’s fixed in 5.0.1 on npm. Cheers!

1reaction
jakubpawlowiczcommented, Feb 10, 2021

No problem @eneko89 Let me have a look at it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New v5.0.0 version is always rebasing urls #54 - GitHub
Urls are getting rebased always, even when --with-rebase option is not used. Both of these rebase urls and produce the same results: ...
Read more >
Upgrading React application from Material UI v4 to v5
I am running react version 17.0.2. My first attempt to upgrade to v5 I used the codemod and I had too many unexplained...
Read more >
config package - github.com/fluxcd/go-git/v5/config - Go Packages
Version : v5.0.0-. ... New("remote config: empty URL") ErrRemoteConfigEmptyName = errors. ... ReferenceName // Rebase instead of merge when pulling.
Read more >
Gecko SDK on GitHub - Silicon Labs - Silicon Labs Login
Hi all, I'd like to announce that versions of the Gecko SDK are now ... v5.0.0 is now available on GitHub (both Gecko_SDK...
Read more >
Releases - GitLab Documentation
Select the New release checkbox. Close the dialog box to save. Prevent unintentional releases by setting a deploy freeze. Version history.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found