]> source.dussan.org Git - jquery.git/commitdiff
Tell uglifyjs to not mangle undefined; saves 44 bytes. Fixes #13759. Close gh-1239. 1239/head
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 10 Apr 2013 18:46:31 +0000 (20:46 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 15 Apr 2013 16:46:14 +0000 (18:46 +0200)
Gruntfile.js

index e753a35cbdeca5142ab6ecbcafeb43f0eb18aaa9..1b13c277d9a250e418fe807dd140acb494b064e5 100644 (file)
@@ -115,6 +115,10 @@ module.exports = function( grunt ) {
                                        sourceMap: "dist/jquery.min.map",
                                        beautify: {
                                                ascii_only: true
+                                       },
+                                       mangle: {
+                                               // saves some bytes when gzipped
+                                               except: [ "undefined" ]
                                        }
                                }
                        }