aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski2013-09-24 19:52:20 +0200
committerJeff Cross2013-10-01 12:30:50 -0700
commit936101041a9a1f1cf9fecf6b5fcfae206cd15424 (patch)
tree526d726253406590ad056b5d553ac7e4ee5641bc
parent2a63dfa6cc7889888f4296fff2944e74ff30b3af (diff)
downloadangular.js-936101041a9a1f1cf9fecf6b5fcfae206cd15424.tar.bz2
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.
-rw-r--r--lib/grunt/utils.js4
1 files changed, 1 insertions, 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;
},