From dddfa2f3d4b7f35fe5dcbff812ca038a4ff38c95 Mon Sep 17 00:00:00 2001 From: ToastHawaii Date: Thu, 6 Jun 2024 16:31:19 +0200 Subject: [PATCH] fix --- src/client/webpack.production.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/webpack.production.config.js b/src/client/webpack.production.config.js index c2c561b..4a56efc 100755 --- a/src/client/webpack.production.config.js +++ b/src/client/webpack.production.config.js @@ -26,6 +26,9 @@ module.exports = { filename: "./de/index.html", chunks: ["de"], }), + new webpack.DefinePlugin({ + "process.env.NODE_ENV": JSON.stringify("production"), + }), new CopyWebpackPlugin({ patterns: [ { from: "./www" }, @@ -37,7 +40,7 @@ module.exports = { filename: "[name]/main.css", }), ], - mode: "development", + mode: "production", resolve: { // Add '.ts' and '.tsx' as resolvable extensions.