oklai / koala

Koala is a GUI application for less, sass and coffeescript compilation, to help web developers to the development more efficient.
http://koala-app.com
Other
3.99k stars 522 forks source link

CSS Optimizer #575

Open otr-tomek opened 7 years ago

otr-tomek commented 7 years ago

It would be nice to have css optimizer option like: http://www.cssportal.com/css-optimize/ (for grouping css rules/selectors, csstidy)

h3{ font-size:10px; } @media (max-width: 600px) { h1{ font-size:20px; } } @media (max-width: 600px) { h2{ font-size:20px; } } ---------> h3 { font-size:10px; color:red; }

body h3 { color:green; }

@media max-width 600px { h1,h2 { font-size:20px; } }

zaygraveyard commented 7 years ago

I didn't find anything that indicates that this tool is available for offline use. And the same functionality is probably achievable using normal CSS minifiers.

nothrem commented 7 years ago

This should be the "advanced" option of the clean-css.

At least it works for LESS files when I compile them with --clean-css="--s1 --advanced" (but since Koala does not include the less-plugin-clean-css I had to manually install it into koala's node modules)