From 936101041a9a1f1cf9fecf6b5fcfae206cd15424 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Tue, 24 Sep 2013 19:52:20 +0200 Subject: 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. --- lib/grunt/utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index fd2e022f..764f481f 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -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; }, -- cgit v1.2.3