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.

--skip-rebase should be the default

See original GitHub issue

I want to provide a small, but important feedback, as it bit me really hard and I believe it’ll bite many other users.

First and foremost, I am using clean-css and now the new clean-css-cli for CSS minification. This is the reference tool for this job, and congratulation for making this huge achievement!

However, the default URL rebasing is an extremely bug prone feature. Running the tool with one path in development (where rebasing might not trigger) might produce a totally different result compared to running in from a different path, or when bundling files for production in a script, because of the “smart” auto rebasing option.

I recommend switching that option off by default (as in making --skip-rebase the default) as it’ll bite many other users who just prefer to use this tool as a CSS minifier, without any of the path relative smart rebasing magic (personally I’d categorise that feature as -O2 or even -O3).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
hyperknotcommented, Apr 19, 2017

Sure, no problem, I’ve finally found the right switch and if people run into the same problem they might find this issue by Google.

On 19 April 2017 at 20:52, Jakub Pawlowicz notifications@github.com wrote:

Got it - since it’d be a breaking change it needs to wait until the next major release.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jakubpawlowicz/clean-css-cli/issues/6#issuecomment-295389158, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeKj3q4z3arYGbyyXsRUyxB7H8Zfd_0ks5rxlfkgaJpZM4M9_Qg .

0reactions
jakubpawlowiczcommented, Feb 4, 2021

And rebasing will be off by default in clean-css-cli v5 due soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

--skip-rebase should be the default · Issue #6 · clean-css/clean ...
I am using a custom build script where clean-css-cli is just an optimal minification step (for production build). For including external ...
Read more >
What exactly does git rebase --skip do? - Stack Overflow
It does what it says, it skips a commit. If you run rebase --abort at a later conflict during the same rebase, the...
Read more >
cleancss - fast and efficient CSS optimizer - manpages.ubuntu!
or via `@import` statements --skip-rebase Disable URLs rebasing ... can be `space` or `tab`; defaults to `space` %> # `spaces` controls where to...
Read more >
clean-css-cli - npm Package Health Analysis - Snyk
You can connect your project's repository to Snyk to stay up to date on security alerts and ... The -O option can be...
Read more >
Minify error on css file - Technical Support - Sublime Forum
I copied Preferences > Package Settings > Minify > Settings-Default ... I pasted the Default settings into the User settings.
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