From c7bb60cab05aedb84ce856170fd67ecd6439e72e Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 26 May 2014 18:17:52 -0700 Subject: [PATCH] [node.js] Add inSourceMapFromString option so one can pass in the sourcemap contents in inSourceMap. --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index 084998da..b923d34a 100644 --- a/tools/node.js +++ b/tools/node.js @@ -103,7 +103,7 @@ exports.minify = function(files, options) { // 4. output var inMap = options.inSourceMap; var output = {}; - if (typeof options.inSourceMap == "string") { + if (typeof options.inSourceMap == "string" && !options.inSourceMapFromString) { inMap = fs.readFileSync(options.inSourceMap, "utf8"); } if (options.outSourceMap) {