summaryrefslogtreecommitdiff
path: root/webpack.config.site.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-05-18 14:16:42 +0200
committerJules Laplace <julescarbon@gmail.com>2021-05-18 14:16:42 +0200
commit30aff969375213db8c66af5f108496f465057787 (patch)
tree458dda23a0588e90f6f2c0255d2897e21c8a84b6 /webpack.config.site.js
parent097f38001543c3e59a803b8b8fd01ef4e3572035 (diff)
german translation of developer notes
Diffstat (limited to 'webpack.config.site.js')
-rw-r--r--webpack.config.site.js12
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'