]> 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:48:33 +0000 (16:48 -0400)
Gruntfile.js

index e0a1ab42b951cbe0656580a111cf979e7f067cbe..d8577d77c9dc34f708390bce5cb026935863d623 100644 (file)
@@ -111,10 +111,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
                                        }
                                }
                        }