aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2017-07-03 14:25:32 -0400
committerTimmy Willison <4timmywil@gmail.com>2017-07-10 11:52:44 -0400
commit0bf499ca24982714c816a836345c027939ccb3c6 (patch)
tree1cfcdd6d047ff6d415599f7ebdebf9540b9719b7 /Gruntfile.js
parentef40dbbc4d1f99d16d646c5417def64327428614 (diff)
downloadjquery-0bf499ca24982714c816a836345c027939ccb3c6.tar.gz
jquery-0bf499ca24982714c816a836345c027939ccb3c6.zip
Build: fix uglify options for uglify update
- Uses new typeofs option for compression - See https://github.com/mishoo/UglifyJS2/issues/2198 Close gh-3710
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 12ae0087e..0c2ba19fa 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -159,11 +159,10 @@ module.exports = function( grunt ) {
options: {
preserveComments: false,
sourceMap: true,
- ASCIIOnly: true,
sourceMapName:
"dist/<%= grunt.option('filename').replace('.js', '.min.map') %>",
report: "min",
- beautify: {
+ output: {
"ascii_only": true
},
banner: "/*! jQuery v<%= pkg.version %> | " +
@@ -171,7 +170,12 @@ module.exports = function( grunt ) {
compress: {
"hoist_funs": false,
loops: false,
- unused: false
+ unused: false,
+
+ // Support: IE <11
+ // typeofs transformation is unsafe for IE9-10
+ // See https://github.com/mishoo/UglifyJS2/issues/2198
+ typeofs: false
}
}
}