diff --git a/tools/node.js b/tools/node.js index 084998da..fbc7a795 100644 --- a/tools/node.js +++ b/tools/node.js @@ -78,7 +78,7 @@ exports.minify = function(files, options) { : fs.readFileSync(file, "utf8"); sourcesContent[file] = code; toplevel = UglifyJS.parse(code, { - filename: options.fromString ? "?" : file, + filename: options.fromString ? options.outSourceMap : file, toplevel: toplevel }); });