allow for anonymous map generation using string type check
This commit is contained in:
parent
fcde6109b0
commit
3a5f354846
|
|
@ -131,7 +131,7 @@ exports.minify = function(files, options) {
|
||||||
var stream = UglifyJS.OutputStream(output);
|
var stream = UglifyJS.OutputStream(output);
|
||||||
toplevel.print(stream);
|
toplevel.print(stream);
|
||||||
|
|
||||||
if(options.outSourceMap){
|
if (options.outSourceMap && "string" === typeof options.outSourceMap) {
|
||||||
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
|
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user