From: Timo Tijhof Date: Tue, 24 Sep 2013 14:23:58 +0000 (+0200) Subject: No ticket: Clean up uglifyjs compress options. Close gh-1382. X-Git-Tag: 2.1.0-beta2~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ca883f863f8c4b3b1153e63ef40a8c2c523d399;p=jquery.git No ticket: Clean up uglifyjs compress options. Close gh-1382. (cherry picked from commit e15627022f0c5e13a972baffb41f6f52ca4d3ec3) --- diff --git a/Gruntfile.js b/Gruntfile.js index e678afc31..439ec6a79 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -113,10 +113,17 @@ module.exports = function( grunt ) { ascii_only: true }, compress: { - hoist_funs: false, - join_vars: false, + properties: true, + dead_code: true, + unsafe: false, + booleans: true, loops: false, - unused: false + unused: false, + hoist_funs: false, + hoist_vars: false, + if_return: true, + join_vars: true, + warnings: true } } }