Build: Fix UglifyJS output in Android 4.0; update uglify

- Thanks to @mgol for first pass

Fixes gh-3743
Close gh-3920
This commit is contained in:
Timmy Willison 2018-01-03 12:19:37 -05:00
parent e2f192887c
commit c9efd11f47
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F
2 changed files with 7 additions and 2 deletions

View File

@ -246,7 +246,12 @@ module.exports = function( grunt ) {
"dist/<%= grunt.option('filename').replace('.js', '.min.map') %>",
report: "min",
output: {
"ascii_only": true
"ascii_only": true,
// Support: Android 4.0 only
// UglifyJS 3 breaks Android 4.0 if this option is not enabled.
// This is in lieu of setting ie8 for all of mangle, compress, and output
"ie8": true
},
banner: "/*! jQuery v<%= pkg.version %> | " +
"(c) JS Foundation and other contributors | jquery.org/license */",

View File

@ -63,7 +63,7 @@
"sizzle": "2.3.3",
"strip-json-comments": "2.0.1",
"testswarm": "1.1.0",
"uglify-js": "3.0.24"
"uglify-js": "3.3.4"
},
"scripts": {
"build": "npm install && grunt",