aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/node.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/node.js b/tools/node.js
index 04e67e78..084998da 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -126,6 +126,11 @@ exports.minify = function(files, options) {
}
var stream = UglifyJS.OutputStream(output);
toplevel.print(stream);
+
+ if(options.outSourceMap){
+ stream += "\n//# sourceMappingURL=" + options.outSourceMap;
+ }
+
return {
code : stream + "",
map : output.source_map + ""