]> source.dussan.org Git - jquery.git/commitdiff
No ticket: Clean up uglifyjs compress options. Close gh-1382.
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 24 Sep 2013 14:23:58 +0000 (16:23 +0200)
committerRichard Gibson <richard.gibson@gmail.com>
Tue, 15 Oct 2013 20:49:47 +0000 (16:49 -0400)
(cherry picked from commit e15627022f0c5e13a972baffb41f6f52ca4d3ec3)

Gruntfile.js

index e678afc3148537349211b31f95bbc1715e981022..439ec6a79ebbb3cae5396ce945a8c6892865332b 100644 (file)
@@ -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
                                        }
                                }
                        }