5 ms·
For django, I've been using django-compress: http://code.google.com/p/django-compress/ http://code.google.com/p/django-compress/ Works with javascript as well
by mark_h 17y ago
For django, I've been using django-compress:
http://code.google.com/p/django-compress/ http://code.google.com/p/django-compress/
Works with javascript as well as CSS, nicely incorporates cache control, ahead-of-time or on-the-fly generation, etc. Works out of the box* in pure python, or it's trivial to plug eg YUI minifier or google-closure.
* Actually, last I looked there was a bug in the CSS minifier it ships with (http://code.google.com/p/django-compress/issues/detail?id=27 http://code.google.com/p/django-compress/issues/detail?id=27), but I believe the upstream version has been fixed.
- ncrovatti 17y agoThanks, it's nice to know since I was about to do something similar for django too.
- deleted 17y ago[deleted]