From e819465e386aabeeced8b530c85634dd2d2d0ec9 Mon Sep 17 00:00:00 2001 From: Surinder Kumar Date: Wed, 13 Sep 2017 15:50:09 +0100 Subject: [PATCH] Always pack React in prod mode to avoid a bug in debug mode that prevents the history tab working. --- web/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/webpack.config.js b/web/webpack.config.js index 03f47c47c..726c7f5ba 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -74,7 +74,7 @@ const optimizeAssetsPlugin = new OptimizeCssAssetsPlugin({ // based on 'NODE_ENV' variable. [used only in production] const definePlugin = new webpack.DefinePlugin({ 'process.env': { - 'NODE_ENV': JSON.stringify(envType), + 'NODE_ENV': JSON.stringify('production'), }, });