]> source.dussan.org Git - jquery.git/commitdiff
Change uglify compression options, close gh-1245.
authorOleg <markelog@gmail.com>
Thu, 18 Apr 2013 13:16:59 +0000 (17:16 +0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 18 Apr 2013 16:38:00 +0000 (12:38 -0400)
Gruntfile.js

index 1b13c277d9a250e418fe807dd140acb494b064e5..98cde83e095a71d87a39a6b3d013edc18dffa413 100644 (file)
@@ -116,6 +116,12 @@ module.exports = function( grunt ) {
                                        beautify: {
                                                ascii_only: true
                                        },
+                                       compress: {
+                                               hoist_funs: false,
+                                               join_vars: false,
+                                               loops: false,
+                                               unused: false
+                                       },
                                        mangle: {
                                                // saves some bytes when gzipped
                                                except: [ "undefined" ]