Merge pull request #786 from istr/anonymous-source-map

Allow for anonymous map generation using string type check
This commit is contained in:
Richard van Velzen
2015-09-06 17:06:14 +02:00

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;
}