fix: terser options

This commit is contained in:
Igor Randjelovic
2021-04-06 15:44:51 +02:00
parent 6afd5a65c3
commit 279b0b1d20
8 changed files with 134 additions and 33 deletions

View File

@ -97,9 +97,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
compress: {
collapse_vars: platform !== 'android',
sequences: platform !== 'android',
keep_infinity: true,
drop_console: mode === 'production',
global_defs: {
__UGLIFIED__: true,
},
},
// todo: move into vue.ts if not required in other flavors?
keep_fnames: true,
keep_classnames: true,
},
},
]);