Minify icon indicating copy to clipboard operation
Minify copied to clipboard

cleancss -O2 --skip-rebase -o

Open thagxt opened this issue 3 years ago • 5 comments

I'm getting the following error trying to minify CSS and can't find any info on fixing it.

cleancss -O2 --skip-rebase -o /path/to/file/style.css
error: unknown option '--skip-rebase'

thagxt avatar Mar 07 '21 23:03 thagxt

Here's a small fix to get minify working:

npm uninstall -g clean-css-cli npm install -g [email protected]

After installing an older version I was able to use the context menu for minifying.

Definitely not ideal, but it works.

input-username-here avatar Mar 19 '21 16:03 input-username-here

yes, that worked for me as well. Thank you

thagxt avatar Mar 19 '21 20:03 thagxt

Same here. Kind of a pain.

CodeByZach avatar Apr 30 '21 20:04 CodeByZach

// “cssminifier”: “clean-css”, to this line: “cssminifier”: “uglifycss”,

abin2011 avatar Jun 11 '21 06:06 abin2011

worked for me only "cssminifier": "yui", but need to install java

dpodoroga avatar Feb 22 '23 11:02 dpodoroga