From 1780e06b31821edf4d88416142764d35eda06063 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Fri, 28 Feb 2020 09:40:25 +0200 Subject: [PATCH] terser options for better compression --- build/rollup_plugins.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/rollup_plugins.js b/build/rollup_plugins.js index 6647a3795b7..5a8fe2e5e56 100644 --- a/build/rollup_plugins.js +++ b/build/rollup_plugins.js @@ -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,