Skip to content

Commit 251ec3b

Browse files
committed
Work around uglify preserveComments some issue
Root cause: gruntjs/grunt-contrib-uglify#366 Fixes #1129
1 parent c21118d commit 251ec3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = function(grunt) {
125125
options: {
126126
mangle: true,
127127
compress: true,
128-
preserveComments: 'some'
128+
preserveComments: /(?:^!|@(?:license|preserve|cc_on))/
129129
},
130130
dist: {
131131
files: [{

0 commit comments

Comments
 (0)