From 0ae7c36a393da5c27a8da00702960504ce680a08 Mon Sep 17 00:00:00 2001 From: qyoz Date: Mon, 11 Jul 2016 12:41:49 +0300 Subject: [PATCH] added no source map comment option to progammatic api --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index e1e6d689..20ecb473 100644 --- a/tools/node.js +++ b/tools/node.js @@ -138,7 +138,7 @@ exports.minify = function(files, options) { toplevel.print(stream); var mappingUrlPrefix = "\n//# sourceMappingURL="; - if (options.outSourceMap && typeof options.outSourceMap === "string") { + if (options.outSourceMap && typeof options.outSourceMap === "string" && options.sourceMapUrl !== false) { stream += mappingUrlPrefix + (typeof options.sourceMapUrl === "string" ? options.sourceMapUrl : options.outSourceMap); }