aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-08 21:22:20 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-08 21:22:20 +0300
commitc967f0b0fefd7db03922769f1d2aaf2ae1394ddc (patch)
tree7575590d9ac95af07a195348b1a3b4d65cf5a6e0
parentdfc04e66770f463e1ae97547950e6b829aaeeeff (diff)
downloadtracifyjs-c967f0b0fefd7db03922769f1d2aaf2ae1394ddc.tar.gz
tracifyjs-c967f0b0fefd7db03922769f1d2aaf2ae1394ddc.zip
fix `inSourceMap` in `minify` (should read the file)
-rw-r--r--tools/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index e5046e21..bf47abad 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -94,7 +94,7 @@ exports.minify = function(files, options) {
var map = null;
if (options.outSourceMap) map = UglifyJS.SourceMap({
file: options.outSourceMap,
- orig: options.inSourceMap
+ orig: fs.readFileSync(options.inSourceMap, "utf8")
});
var stream = UglifyJS.OutputStream({ source_map: map });
toplevel.print(stream);