File tree 2 files changed +28
-9
lines changed
2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,33 @@ module.exports = function( grunt ) {
74
74
uglify : {
75
75
all : {
76
76
files : {
77
- "dist/jquery-migrate.min.js" : [ "src/migratemute.js" , "dist/jquery-migrate.js" ]
78
- }
79
- } ,
80
- options : {
81
- banner : "/*! jQuery Migrate v<%= pkg.version %>" +
82
- " | (c) <%= pkg.author.name %> | jquery.org/license */\n" ,
83
- beautify : {
84
- ascii_only : true
77
+ "dist/jquery-migrate.min.js" :
78
+ [ "src/migratemute.js" , "dist/jquery-migrate.js" ]
79
+ } ,
80
+ options : {
81
+ preserveComments : false ,
82
+ sourceMap : true ,
83
+ sourceMapName : "dist/jquery-migrate.min.map" ,
84
+ report : "min" ,
85
+ output : {
86
+ "ascii_only" : true ,
87
+
88
+ // Support: Android 4.0 only
89
+ // UglifyJS 3 breaks Android 4.0 if this option is not enabled.
90
+ // This is in lieu of setting ie8 for all of mangle, compress, and output
91
+ "ie8" : true
92
+ } ,
93
+ banner : "/*! jQuery Migrate v<%= pkg.version %>" +
94
+ " | (c) <%= pkg.author.name %> | jquery.org/license */" ,
95
+ compress : {
96
+ "hoist_funs" : false ,
97
+ loops : false ,
98
+
99
+ // Support: IE <11
100
+ // typeofs transformation is unsafe for IE9-10
101
+ // See https://github.com/mishoo/UglifyJS2/issues/2198
102
+ typeofs : false
103
+ }
85
104
}
86
105
}
87
106
} ,
Original file line number Diff line number Diff line change 19
19
</ script >
20
20
< script >
21
21
jQuery . noConflict ( ) ;
22
- TestManager . loadProject ( "jquery-migrate" , "dev " , true ) ;
22
+ TestManager . loadProject ( "jquery-migrate" , "min " , true ) ;
23
23
</ script >
24
24
25
25
<!-- Version comparisons -->
You can’t perform that action at this time.
0 commit comments