Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function.
This commit is contained in:
committed by
Richard van Velzen
parent
fb049d3a81
commit
307b88d6cc
@@ -114,7 +114,7 @@ exports.minify = function(files, options) {
|
|||||||
var inMap = options.inSourceMap;
|
var inMap = options.inSourceMap;
|
||||||
var output = {};
|
var output = {};
|
||||||
if (typeof options.inSourceMap == "string") {
|
if (typeof options.inSourceMap == "string") {
|
||||||
inMap = fs.readFileSync(options.inSourceMap, "utf8");
|
inMap = JSON.parse(fs.readFileSync(options.inSourceMap, "utf8"));
|
||||||
}
|
}
|
||||||
if (options.outSourceMap) {
|
if (options.outSourceMap) {
|
||||||
output.source_map = UglifyJS.SourceMap({
|
output.source_map = UglifyJS.SourceMap({
|
||||||
|
|||||||
Reference in New Issue
Block a user