From 2f209e46d810abe5f78ba60dd9d7d48755a733aa Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 11 Apr 2019 17:44:34 +0300 Subject: Fix HMR for CSS Do not extract load css extract plugin in development mode --- vnext/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index b578d49c..fadf35a7 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -40,7 +40,7 @@ module.exports = (env, argv) => { { test: /\.css$/, use: [ - MiniCssExtractPlugin.loader, + dev? "style-loader" : MiniCssExtractPlugin.loader, { loader: 'css-loader' }, -- cgit v1.2.3