fix inSourceMap in minify (should read the file)

This commit is contained in:
Mihai Bazon
2012-10-08 21:22:20 +03:00
parent dfc04e6677
commit c967f0b0fe

View File

@@ -94,7 +94,7 @@ exports.minify = function(files, options) {
var map = null;
if (options.outSourceMap) map = UglifyJS.SourceMap({
file: options.outSourceMap,
orig: options.inSourceMap
orig: fs.readFileSync(options.inSourceMap, "utf8")
});
var stream = UglifyJS.OutputStream({ source_map: map });
toplevel.print(stream);