diff options
| author | Michał Gołębiowski | 2013-09-24 19:52:20 +0200 | 
|---|---|---|
| committer | Jeff Cross | 2013-10-01 12:30:50 -0700 | 
| commit | 936101041a9a1f1cf9fecf6b5fcfae206cd15424 (patch) | |
| tree | 526d726253406590ad056b5d553ac7e4ee5641bc /lib | |
| parent | 2a63dfa6cc7889888f4296fff2944e74ff30b3af (diff) | |
| download | angular.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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/grunt/utils.js | 4 | 
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;    }, | 
