Skip to content

Commit

Permalink
Merge pull request #3150 from peterbe/bug-1238595-syntaxerror-in-comp…
Browse files Browse the repository at this point in the history
…ressed-jquery-ui

Bug 1238595 syntaxerror in compressed jquery ui
  • Loading branch information
adngdb committed Jan 12, 2016
2 parents 1350397 + db0eb09 commit 37aef6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion webapp-django/crashstats/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,14 @@ def JINJA_CONFIG():
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'

# You have to run `npm install` for this to be installed in `./node_modules`
PIPELINE_YUGLIFY_BINARY = path('node_modules/.bin/yuglify')

PIPELINE_LESS_BINARY = path('node_modules/.bin/lessc')
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.uglifyjs.UglifyJSCompressor'
PIPELINE_UGLIFYJS_BINARY = path('node_modules/.bin/uglifyjs')
PIPELINE_UGLIFYJS_ARGUMENTS = '--mangle'
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.cssmin.CSSMinCompressor'
PIPELINE_CSSMIN_BINARY = path('node_modules/.bin/cssmin')


# Don't wrap javascript code in... `(...code...)();`
# because possibly much code has been built with the assumption that things
Expand Down
3 changes: 2 additions & 1 deletion webapp-django/crashstats/settings/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
'source_filenames': (
'crashstats/js/socorro/exploitability.js',
),
'output_filename': 'js/.min.js',
'output_filename': 'js/exploitability.min.js',
},
'gccrashes': {
'source_filenames': (
Expand Down Expand Up @@ -442,6 +442,7 @@
out = v['output_filename']
assert isinstance(v['source_filenames'], tuple), v
assert isinstance(out, basestring), v
assert not out.split('/')[-1].startswith('.'), k
assert '_' not in out
assert out.endswith('.min.css') or out.endswith('.min.js')
for asset_file in v['source_filenames']:
Expand Down
3 changes: 2 additions & 1 deletion webapp-django/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"author": "Mozilla",
"license": "MPL-2.0",
"dependencies": {
"cssmin": "0.4.3",
"less": "2.5.3",
"yuglify": "0.1.4"
"uglify-js": "2.6.1"
}
}

0 comments on commit 37aef6b

Please sign in to comment.