From c967f0b0fefd7db03922769f1d2aaf2ae1394ddc Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Mon, 8 Oct 2012 21:22:20 +0300 Subject: [PATCH] fix `inSourceMap` in `minify` (should read the file) --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1