﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15213	Add support for compressors/minimizers to django.contrib.staticfiles	Sebastian Noack		"It's common practice to use programs like jsmin and yui-compresser in order to compress JS and CSS files to reduce traffic and accelerate the parsing. Usually you wold compress those files when deploying the web project. When you are using django.contrib.staticfiles that would be just before or after you have called the collectstatic management command. So I thought it would be great if that mangement command could do that for you and have written the patch attached to this ticket. It adds a new setting STATICFILES_COMPRESSORS. It's a dictionary mapping filename extensions to command lines used to compress files with that extension. You can use any external program that takes the raw file on stdin and outputs compressed file to stdout. So for example if you would like to use yui-compressor, you only have to add following to your settings module.

{{{
#!python
STATICFILES_COMPRESSORS = {
    'js':  'yui-compressor --type js',
    'css': 'yui-compressor --type css',
}
}}}"		closed	contrib.staticfiles	1.3-alpha		wontfix			Accepted	1	0	0	0	0	0
