public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fcabbd
)
add sourceMappingUrl to output in node module
author
OiNutter
<willmckenzie@oinutter.co.uk>
Fri, 11 Apr 2014 15:09:56 +0000
(16:09 +0100)
committer
Eric Bednarz
<github@bednarz.nl>
Sun, 13 Apr 2014 09:48:38 +0000
(11:48 +0200)
If options.outSourceMap is specified the sourceMappingURL comment
should be appended to the output stream
tools/node.js
patch
|
blob
|
history
diff --git
a/tools/node.js
b/tools/node.js
index
04e67e7
..
084998d
100644
(file)
--- 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 + ""