Commit 5579da55 by Will Daly Committed by Zia Fazal

Use UglifyJS to minify JavaScript in the LMS

parent 635a11e6
......@@ -1260,7 +1260,7 @@ if os.path.isdir(DATA_DIR):
PIPELINE_CSS_COMPRESSOR = None
PIPELINE_JS_COMPRESSOR = None
PIPELINE_JS_COMPRESSOR = "pipeline.compressors.uglifyjs.UglifyJSCompressor"
STATICFILES_IGNORE_PATTERNS = (
"sass/*",
......@@ -1271,7 +1271,7 @@ STATICFILES_IGNORE_PATTERNS = (
"common_static",
)
PIPELINE_YUI_BINARY = 'yui-compressor'
PIPELINE_UGLIFYJS_BINARY='node_modules/.bin/uglifyjs'
# Setting that will only affect the edX version of django-pipeline until our changes are merged upstream
PIPELINE_COMPILE_INPLACE = True
......
......@@ -2,6 +2,7 @@
"name": "edx",
"version": "0.1.0",
"dependencies": {
"coffee-script": "1.6.1"
"coffee-script": "1.6.1",
"uglify-js": "2.4.15"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment