diff options
author | Timmy Willison <4timmywil@gmail.com> | 2017-07-03 14:25:32 -0400 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2017-07-10 11:52:44 -0400 |
commit | 0bf499ca24982714c816a836345c027939ccb3c6 (patch) | |
tree | 1cfcdd6d047ff6d415599f7ebdebf9540b9719b7 /Gruntfile.js | |
parent | ef40dbbc4d1f99d16d646c5417def64327428614 (diff) | |
download | jquery-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.js | 10 |
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 } } } |