Add multiline horrible kludge for IE

This commit is contained in:
Jason Walton
2013-03-04 19:08:33 -05:00
parent 2684737b66
commit add84bfddc
2 changed files with 2 additions and 2 deletions

View File

@@ -395,7 +395,7 @@
js = ' ';
}
if (generatedSourceMap) {
js = "" + js + "\n//@ sourceMappingURL=" + (helpers.baseFileName(sourceMapPath)) + "\n";
js = "" + js + "\n/*\n//@ sourceMappingURL=" + (helpers.baseFileName(sourceMapPath)) + "\n*/\n";
}
fs.writeFile(jsPath, js, function(err) {
if (err) {

View File

@@ -270,7 +270,7 @@ writeJs = (base, sourcePath, js, generatedSourceMap = null) ->
compile = ->
if opts.compile
js = ' ' if js.length <= 0
if generatedSourceMap then js = "#{js}\n//@ sourceMappingURL=#{helpers.baseFileName sourceMapPath}\n"
if generatedSourceMap then js = "#{js}\n/*\n//@ sourceMappingURL=#{helpers.baseFileName sourceMapPath}\n*/\n"
fs.writeFile jsPath, js, (err) ->
if err
printLine err.message