Skip to content

Commit 048a3d6

Browse files
committed
set minify option 'compress' to false
... because it breaks mapbox-gl.
1 parent 28afcf9 commit 048a3d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/util/constants.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@ module.exports = {
8686

8787
uglifyOptions: {
8888
mangle: true,
89-
compress: {
90-
warnings: false
91-
},
89+
// the compress flag break mapbox-gl,
90+
// TODO find a way to only skip compression on mapbox-gl files
91+
compress: false,
9292
output: {
9393
beautify: false,
9494
ascii_only: true
9595
},
96+
9697
sourceMap: false
9798
},
9899

0 commit comments

Comments
 (0)