Skip to content

Commit c9029c8

Browse files
mgoljamesdaily
authored andcommitted
chore(grunt): switch to the new //# sourceMappingURL pragma
All browsers except from Chrome implemented both the old "//@ sourceMappingURL" and the new "//# sourceMappingURL" pragmas in the same version so the only reason to keep the old one was Chrome. However, Chrome 29, i.e. current stable version already supports the new pragma so there's no need to wait any longer.
1 parent f633080 commit c9029c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/grunt/utils.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ module.exports = {
134134

135135

136136
sourceMap: function(mapFile, fileContents) {
137-
// use the following once Chrome beta or stable supports the //# pragma
138-
// var sourceMapLine = '//# sourceMappingURL=' + mapFile + '\n';
139-
var sourceMapLine = '/*\n//@ sourceMappingURL=' + mapFile + '\n*/\n';
137+
var sourceMapLine = '//# sourceMappingURL=' + mapFile + '\n';
140138
return fileContents + sourceMapLine;
141139
},
142140

0 commit comments

Comments
 (0)