Hey Luigi. By default, Django Compressor will simply concatenate (join) 
your static files. This is good because it will save HTTP requests to your 
site, and your visitors will get all your static files in one request 
(instead of many). If you also want to minify your files (remove whitespace 
and newlines, mostly), you need to define the following setting (for CSS 
files):

COMPRESS_CSS_FILTERS = 
['compressor.filters.css_default.CssAbsoluteFilter',  
'compressor.filters.cssmin.CSSMinFilter']

This will get your CSS files minified. You can do fancier stuff like 
compile LESS files and minify JS, but that'd require other dependencies and 
configuring other settings related to binary file locations and more. The 
docs go in great detail about this: 
http://django-compressor.readthedocs.org/en/latest/settings/#backend-settings

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to