aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOiNutter <willmckenzie@oinutter.co.uk>2014-04-11 16:09:56 +0100
committerEric Bednarz <github@bednarz.nl>2014-04-13 11:48:38 +0200
commitef772b0049828fef64e81ba49f564d45d880b27a (patch)
tree532d779892f13acf24790f83bf82041f08967e2f /tools
parent6fcabbde08cdac7890fedcc29b0342208998a871 (diff)
downloadtracifyjs-ef772b0049828fef64e81ba49f564d45d880b27a.tar.gz
tracifyjs-ef772b0049828fef64e81ba49f564d45d880b27a.zip
add sourceMappingUrl to output in node module
If options.outSourceMap is specified the sourceMappingURL comment should be appended to the output stream
Diffstat (limited to 'tools')
-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 + ""