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.