support specifying the filename when minifying using fromString
This commit is contained in:
parent
6ea3f7fe34
commit
d6d874ed4d
|
|
@ -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.fromStringFile || "?" : file,
|
||||
toplevel: toplevel
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user