aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-11 17:44:34 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit2f209e46d810abe5f78ba60dd9d7d48755a733aa (patch)
tree0636a97fa4b9d972e2da438e34ad9203f3dc3796 /vnext/webpack.config.js
parent02f89317283da3b8742edf1429342072bb75416e (diff)
Fix HMR for CSS
Do not extract load css extract plugin in development mode
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
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'
},