News for hackers. Stuff that matters.
Re:CSSNano: A modular minifier based on the PostCSS ecosystem by davidkpiano on Tuesday October 06, 2015 @10:26AM (#10339088)
This is the kind of thing that PostCSS should really be used for: responsible transforming of existing CSS without inventing new syntax or doing invisible "magical" transformations.

Or trying to emulate built-in features from other preprocessors.

Re:CSSNano: A modular minifier based on the PostCSS ecosystem by snarkyturtle on Tuesday October 06, 2015 @11:47AM (#10339668)
So really you just don't like cssnext/css-modules, since there are lots of postcss plugins that try to emulate features from preprocessors. If all you're doing is transforming css, I don't see the need to abandon preprocessors though...
Re:CSSNano: A modular minifier based on the PostCSS ecosystem by davidkpiano on Tuesday October 06, 2015 @04:28PM (#10342110)
Exactly. Use PostCSS in conjunction with preprocessors.
Re:CSSNano: A modular minifier based on the PostCSS ecosystem by audessuscest on Tuesday October 06, 2015 @10:58AM (#10339287)
Similar : https://github.com/hail2u/node-csswring

Written with PostCSS too

Re:CSSNano: A modular minifier based on the PostCSS ecosystem by ganarajpr on Tuesday October 06, 2015 @04:51PM (#10342290)
I am interested to know what are the objective benefits of minication ?

My understanding was that if you did enable gzip compression that takes away most of your advantages from minifying the code ? Am I wrong in this ? Also, does someone have stats on how much more saving can be done with minification , compared to just gzip ?

Re:CSSNano: A modular minifier based on the PostCSS ecosystem by beneb on Tuesday October 06, 2015 @05:05PM (#10342391)
I don't have a gzip benchmark for cssnano itself, but I know that the road to best compression is using both.

http://stackoverflow.com/a/807161/1745309

Re:CSSNano: A modular minifier based on the PostCSS ecosystem by ZeroGravitas on Tuesday October 06, 2015 @01:11PM (#10340457)
Some of these seem a bit extreme, converting things to pica from px, for example? I could see that confusing me if I was trying to work from the deployed CSS back.
Re:CSSNano: A modular minifier based on the PostCSS ecosystem by beneb on Tuesday October 06, 2015 @01:23PM (#10340579)
Since v3.2.0 this is no longer done by default and can be enabled via the config object. The website should probably be updated to reflect this.

https://github.com/ben-eb/cssnano/releases/tag/v3.2.0