We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5acd032 commit 5a21b68Copy full SHA for 5a21b68
gulpfile.babel.js
@@ -78,9 +78,7 @@ const formatMap = {
78
79
// overwrite the comments strings in the config with functions
80
// preserve the injected license header, strip everything else
81
-config.uglify.min.output.comments = (node, comment) => comment.line === 1;
82
-// preserve the injected license header, strip license blocks
83
-config.uglify.nonMin.output.comments = (node, comment) => comment.line === 1 || !(/@(uglify|license|copyright)/i.test(comment.value));
+config.uglify.min.output.comments = config.uglify.nonMin.output.comments = (node, comment) => comment.line === 1;
84
85
function bundle (format) {
86
// only minify in prod and for global bundles
0 commit comments