Skip to content

Commit

Permalink
terser options for better compression (mapbox#9357)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and mike-unearth committed Mar 18, 2020
1 parent b032ef4 commit bc62d18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/rollup_plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ export const plugins = (minified, production) => [
}) : false,
glsl('./src/shaders/*.glsl', production),
buble({transforms: {dangerousForOf: true}, objectAssign: "Object.assign"}),
minified ? terser() : false,
minified ? terser({
compress: {
pure_getters: true,
passes: 3
}
}) : false,
production ? unassert() : false,
resolve({
browser: true,
Expand Down

0 comments on commit bc62d18

Please sign in to comment.