diff options
Diffstat (limited to 'webpack.config.site.js')
| -rw-r--r-- | webpack.config.site.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/webpack.config.site.js b/webpack.config.site.js index 14d22b4..a444858 100644 --- a/webpack.config.site.js +++ b/webpack.config.site.js @@ -34,7 +34,17 @@ module.exports = function (env) { // 'process.env.API_HOST': JSON.stringify(process.env.API_HOST || ""), __REACT_DEVTOOLS_GLOBAL_HOOK__: "({ isDisabled: true })", }), - new TerserPlugin(), + new TerserPlugin({ + extractComments: true, + parallel: true, + terserOptions: { + // https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions + extractComments: "all", + compress: { + drop_console: true, + }, + }, + }), new webpack.optimize.AggressiveMergingPlugin(), // new Visualizer({ // filename: './statistics.html' |
