From 6b679d7a3b9d460145a058072490f6f2a54dd0e4 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Sat, 9 Dec 2023 16:24:12 +0100 Subject: [PATCH] fix: use defaults in terser Use the default options provided by terser --- .webpack/webpack.prod.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.webpack/webpack.prod.js b/.webpack/webpack.prod.js index b0dac822ffd..f7a251b04cf 100644 --- a/.webpack/webpack.prod.js +++ b/.webpack/webpack.prod.js @@ -61,24 +61,7 @@ module.exports = merge(base, { optimization: { runtimeChunk: false, minimizer: [ - new TerserPlugin({ - terserOptions: { - format: { - comments: false - }, - warnings: false, - parse: { - html5_comments: false - }, - mangle: true, - module: false, - toplevel: false, - ie8: false, - keep_classnames: false, - keep_fnames: false, - safari10: false - } - }), + new TerserPlugin(), new CssMinimizerPlugin() ] },