fix inSourceMap in minify (should read the file)
This commit is contained in:
@@ -94,7 +94,7 @@ exports.minify = function(files, options) {
|
|||||||
var map = null;
|
var map = null;
|
||||||
if (options.outSourceMap) map = UglifyJS.SourceMap({
|
if (options.outSourceMap) map = UglifyJS.SourceMap({
|
||||||
file: options.outSourceMap,
|
file: options.outSourceMap,
|
||||||
orig: options.inSourceMap
|
orig: fs.readFileSync(options.inSourceMap, "utf8")
|
||||||
});
|
});
|
||||||
var stream = UglifyJS.OutputStream({ source_map: map });
|
var stream = UglifyJS.OutputStream({ source_map: map });
|
||||||
toplevel.print(stream);
|
toplevel.print(stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user