[Pkg-javascript-commits] [uglifyjs] 05/28: add sourceMappingUrl to output in node module
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 11:57:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit ef772b0049828fef64e81ba49f564d45d880b27a
Author: OiNutter <willmckenzie at oinutter.co.uk>
Date: Fri Apr 11 16:09:56 2014 +0100
add sourceMappingUrl to output in node module
If options.outSourceMap is specified the sourceMappingURL comment
should be appended to the output stream
---
tools/node.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/node.js b/tools/node.js
index 04e67e7..084998d 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 + ""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list