mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
2a63dfa6cc
commit
936101041a
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue