diff options
author | OiNutter <willmckenzie@oinutter.co.uk> | 2014-04-11 16:09:56 +0100 |
---|---|---|
committer | Eric Bednarz <github@bednarz.nl> | 2014-04-13 11:48:38 +0200 |
commit | ef772b0049828fef64e81ba49f564d45d880b27a (patch) | |
tree | 532d779892f13acf24790f83bf82041f08967e2f /tools | |
parent | 6fcabbde08cdac7890fedcc29b0342208998a871 (diff) | |
download | tracifyjs-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.js | 5 |
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 + "" |