Skip to content

Commit

Permalink
terser options for better compression (#9357)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored Feb 29, 2020
1 parent 7132ccd commit 3a293bd
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 3a293bd

Please sign in to comment.