aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLucas Wiener <lucas@wiener.se>2016-07-26 09:54:02 +0200
committerRichard van Velzen <rvanvelzen1@gmail.com>2016-08-14 21:40:14 +0200
commit307b88d6ccecf3de4150450ac651594db1b8ba56 (patch)
tree28aea6664acc99126fa21787a89df2ae07c148ae /tools
parentfb049d3a81b744a5facf1f032b8b2815c410f178 (diff)
downloadtracifyjs-307b88d6ccecf3de4150450ac651594db1b8ba56.tar.gz
tracifyjs-307b88d6ccecf3de4150450ac651594db1b8ba56.zip
Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function.
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index 20ecb473..179c69db 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -114,7 +114,7 @@ exports.minify = function(files, options) {
var inMap = options.inSourceMap;
var output = {};
if (typeof options.inSourceMap == "string") {
- inMap = fs.readFileSync(options.inSourceMap, "utf8");
+ inMap = JSON.parse(fs.readFileSync(options.inSourceMap, "utf8"));
}
if (options.outSourceMap) {
output.source_map = UglifyJS.SourceMap({