allow for anonymous map generation using string type check

This commit is contained in:
Ingo Struck
2015-08-27 19:38:33 +02:00
parent fcde6109b0
commit 3a5f354846

View File

@@ -131,7 +131,7 @@ exports.minify = function(files, options) {
var stream = UglifyJS.OutputStream(output);
toplevel.print(stream);
if(options.outSourceMap){
if (options.outSourceMap && "string" === typeof options.outSourceMap) {
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
}