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.
This commit is contained in:
Michał Gołębiowski 2013-09-24 19:52:20 +02:00 committed by Jeff Cross
parent 2a63dfa6cc
commit 936101041a

View file

@ -134,9 +134,7 @@ module.exports = {
sourceMap: function(mapFile, fileContents) {
// use the following once Chrome beta or stable supports the //# pragma
// var sourceMapLine = '//# sourceMappingURL=' + mapFile + '\n';
var sourceMapLine = '/*\n//@ sourceMappingURL=' + mapFile + '\n*/\n';
var sourceMapLine = '//# sourceMappingURL=' + mapFile + '\n';
return fileContents + sourceMapLine;
},