awsp / minify

Automatically exported from code.google.com/p/minify, forked as Google Code no longer host.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Other CSS Minifier options #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It could be pretty nice if you include to your build some of powerfull css
minifier. Hier is some infos about css optimizer:

http://www.bloggingpro.com/archives/2006/08/17/css-optimization/

And hier ist, as I think the best one:

http://iceyboard.no-ip.org/projects/css_compressor

Original issue reported on code.google.com by oleg008 on 9 Feb 2009 at 1:03

GoogleCodeExporter commented 9 years ago
CSS Compressor's code is all entangled with its web front end. Would you like 
to 
rewrite it as a class with a ::minify($css, $options) method?

My favorite consideration is CSSTidy; using a true parser might be necessary if 
CSS3 
syntax gets more wacky.

From what I can tell *none* of these preserve comment hacks. I know these are 
thankfully headed out of style, but I don't want to potentially break users' 
CSS to 
save just a few bytes.

Original comment by mrclay....@gmail.com on 9 Feb 2009 at 5:41

GoogleCodeExporter commented 9 years ago
I don't know if CSSTidy has the same compress ratio as the first one, but it 
seems to
know all optimization rules.

I whould not set it as default class, just like additional possibility, that I 
can
configure throw compressorname as a parameter.

Such css compressor can make the file 60% smaller, sometimes its not just a few 
bytes.

By minifying javascript you are also breaking users code. So for that case I 
whould
build a debug mode, in which no css and javascript files will be 
minified/optimized

Original comment by oleg008 on 9 Feb 2009 at 10:33