From 3ca883f863f8c4b3b1153e63ef40a8c2c523d399 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 24 Sep 2013 16:23:58 +0200 Subject: [PATCH] No ticket: Clean up uglifyjs compress options. Close gh-1382. (cherry picked from commit e15627022f0c5e13a972baffb41f6f52ca4d3ec3) --- Gruntfile.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 } } } -- 2.39.5