Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

minifying css after (instead of) less #117

Open
bouks opened this issue Feb 8, 2015 · 2 comments
Open

minifying css after (instead of) less #117

bouks opened this issue Feb 8, 2015 · 2 comments

Comments

@bouks
Copy link
Contributor

bouks commented Feb 8, 2015

I've tested some css condensers and minifiers.
This one is very good : https://github.com/rstacruz/css-condense

It minifies PLUS it condense rules via selectors and definitions :
https://github.com/rstacruz/css-condense#consolidation-via-selectors

I've tested with our css it's cool.
Build in two steps :

lessc css.less > css.css
cssc css.css > css-min.css
@bouks
Copy link
Contributor Author

bouks commented Feb 8, 2015

It's also possible to condense rules without compressing :

lessc css.less > css.css
cssc --no-compress css.css > css-condensed.css

Note : it's not possible to do that

cssc --no-compress css.css > css.css

But it is possible to pipe

@bouks
Copy link
Contributor Author

bouks commented Feb 10, 2015

@flack proposed : #116 (comment)

I tested css-purge because it's automated so can be part of a builder.
Saved about 4.5kB and 200 lines. Result looking good in navigator.
I notice one problem, it doesn't minify.

But i've found this, not tested :
https://github.com/ajkochanowicz/gulp-css-purge

@meh-uk meh-uk added this to the 2.0 milestone Mar 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants