File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,10 @@ module.exports = function( grunt ) {
8585 "dist/jquery.pre-min.js" : [ "dist/jquery.js" ]
8686 } ,
8787 options : {
88- banner : "\n\n\n\n\n\n\n\n\n\n" + // banner line size must be preserved
88+ banner : "\n\n\n\n\n\n\n\n\n\n\n\n " + // banner line size must be preserved
8989 "/*! jQuery v<%= pkg.version %> | " +
9090 "(c) 2005, 2013 jQuery Foundation, Inc. | " +
91- "jquery.org/license\n" +
92- "//@ sourceMappingURL=jquery.min.map\n" +
93- "*/\n"
91+ "jquery.org/license */\n"
9492 }
9593 }
9694 } ,
Original file line number Diff line number Diff line change @@ -57,18 +57,6 @@ module.exports = function( grunt ) {
5757 if ( / \. m a p $ / . test ( filename ) ) {
5858 text = text . replace ( / " d i s t \/ / g, "\"" ) ;
5959 fs . writeFileSync ( filename , text , "utf-8" ) ;
60-
61- // Use our hard-coded sourceMap directive instead of the autogenerated one (#13274; #13776)
62- } else if ( / \. m i n \. j s $ / . test ( filename ) ) {
63- i = 0 ;
64- text = text . replace ( / (?: \/ \* | ) \n ? \/ \/ @ \s * s o u r c e M a p p i n g U R L = .* ( \n \* \/ | ) / g,
65- function ( match ) {
66- if ( i ++ ) {
67- return "" ;
68- }
69- return match ;
70- } ) ;
71- fs . writeFileSync ( filename , text , "utf-8" ) ;
7260 }
7361
7462 // Optionally copy dist files to other locations
Original file line number Diff line number Diff line change @@ -38,12 +38,8 @@ module.exports = function( grunt ) {
3838 // Rename the file to a temporary name.
3939 fs . renameSync ( mapFileName , mapping . dest ) ;
4040 grunt . file . write ( mapFileName , grunt . file . read ( mapping . dest )
41- // The uglify task erroneously prepends dist/ to file names.
42- . replace ( / " d i s t \/ / g, "\"" )
4341 // Refer to the source jquery.js, not the temporary jquery.pre-min.js.
44- . replace ( / \. p r e - m i n \. / g, "." )
45- // There's already a pragma at the beginning of the file, remove the one at the end.
46- . replace ( / \/ \/ @ s o u r c e M a p p i n g U R L = j q u e r y \. m i n \. m a p $ / g, "" ) ) ;
42+ . replace ( / \. p r e - m i n \. / g, "." ) ) ;
4743 } ) ;
4844
4945 // Remove temporary files.
You can’t perform that action at this time.
0 commit comments