We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa83dad + 3f20c27 commit 01c017eCopy full SHA for 01c017e
1 file changed
lib/optimize/UglifyJsPlugin.js
@@ -75,11 +75,14 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
75
file: file,
76
root: ""
77
});
78
- var stream = uglify.OutputStream({
79
- comments: options.comments || /^\**!|@preserve|@license/,
80
- beautify: options.beautify,
81
- source_map: map
82
- });
+ var output = {};
+ output.comments = options.comments || /^\**!|@preserve|@license/;
+ output.beautify = options.beautify;
+ for(var k in options.output) {
+ output[k] = options.output[k];
83
+ }
84
+ output.source_map = map;
85
+ var stream = uglify.OutputStream(output);
86
ast.print(stream);
87
map = map + "";
88
stream = stream + "";
0 commit comments