added no source map comment option to progammatic api
This commit is contained in:
parent
a9aa85517f
commit
0ae7c36a39
|
|
@ -138,7 +138,7 @@ exports.minify = function(files, options) {
|
|||
toplevel.print(stream);
|
||||
|
||||
var mappingUrlPrefix = "\n//# sourceMappingURL=";
|
||||
if (options.outSourceMap && typeof options.outSourceMap === "string") {
|
||||
if (options.outSourceMap && typeof options.outSourceMap === "string" && options.sourceMapUrl !== false) {
|
||||
stream += mappingUrlPrefix + (typeof options.sourceMapUrl === "string" ? options.sourceMapUrl : options.outSourceMap);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user