My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 87: Other CSS Minifier options
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  st...@mrclay.org
Type-Enhancement
Priority-Low


Sign in to add a comment
 
Reported by oleg008, Feb 08, 2009
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

Comment 1 by st...@mrclay.org, Feb 08, 2009
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.
Summary: Other CSS Minifier options
Status: Accepted
Owner: st...@mrclay.org
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
Comment 2 by oleg008, Feb 09, 2009
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



Sign in to add a comment

Hosted by Google Code