allow fileName option with fromString
This commit is contained in:
parent
83ba338bd0
commit
7378ef6fb7
|
|
@ -72,7 +72,7 @@ exports.minify = function(files, options) {
|
|||
? file
|
||||
: fs.readFileSync(file, "utf8");
|
||||
toplevel = UglifyJS.parse(code, {
|
||||
filename: options.fromString ? "?" : file,
|
||||
filename: options.fromString ? options.fileName : file,
|
||||
toplevel: toplevel
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user