Enable jsmin.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 2 Oct 2014 11:23:53 +0000 (13:23 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 2 Oct 2014 11:23:53 +0000 (13:23 +0200)
requirements.txt
wolnelektury/settings/static.py

index 06dc1fa..7bed40f 100644 (file)
@@ -4,6 +4,7 @@
 Django>=1.7,<1.8
 fnpdjango>=0.1.15,<0.2
 django-pipeline>=1.3,<1.4
+jsmin
 django-pagination>=1.0
 django-maintenancemode>=0.10
 django-piston==0.2.2.1.2
index 0a520ad..ebce200 100644 (file)
@@ -153,7 +153,7 @@ PIPELINE_JS = {
 
 STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage'
 PIPELINE_CSS_COMPRESSOR = None
-PIPELINE_JS_COMPRESSOR = None
+PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.jsmin.JSMinCompressor'
 
 PIPELINE_COMPILERS = (
     'pipeline.compilers.sass.SASSCompiler',