Quick Node.js tool fix
This commit is contained in:
@@ -214,9 +214,11 @@ class HTML5Helper {
|
|||||||
if (FileSystem.exists (tempFile + ".map")) {
|
if (FileSystem.exists (tempFile + ".map")) {
|
||||||
|
|
||||||
// closure does not include a sourceMappingURL in the created .js, we do it here
|
// closure does not include a sourceMappingURL in the created .js, we do it here
|
||||||
|
#if !nodejs
|
||||||
var f = File.append (tempFile);
|
var f = File.append (tempFile);
|
||||||
f.writeString ("//# sourceMappingURL=" + Path.withoutDirectory (sourceFile) + ".map");
|
f.writeString ("//# sourceMappingURL=" + Path.withoutDirectory (sourceFile) + ".map");
|
||||||
f.close ();
|
f.close ();
|
||||||
|
#end
|
||||||
|
|
||||||
File.copy (tempFile + ".map", sourceFile + ".map");
|
File.copy (tempFile + ".map", sourceFile + ".map");
|
||||||
FileSystem.deleteFile (tempFile + ".map");
|
FileSystem.deleteFile (tempFile + ".map");
|
||||||
|
|||||||
Reference in New Issue
Block a user