From f804f890ef6227904a963660147836b44269e670 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Thu, 8 Jun 2023 17:57:20 -0400 Subject: [PATCH] Update webpack (again) to ensure devserver doesn't break --- webpack.config.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 14ce8051b7..3fca4db7b5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -109,6 +109,7 @@ module.exports = (env = {}) => { // needed to reference Vuetify styles in the shadow DOM vuetify: path.resolve('node_modules', 'vuetify'), static: staticFilesDir, + '^vuetify/src/stylus$': false, }, extensions: ['.js', '.vue', '.css', '.less'], modules: [rootNodeModules], @@ -117,10 +118,6 @@ module.exports = (env = {}) => { modules: [rootNodeModules], }, plugins: [ - new webpack.NormalModuleReplacementPlugin( - /vuetify\/src\/stylus\//, - dummyModule - ), new BundleTracker({ filename: path.resolve(djangoProjectDir, 'build', 'webpack-stats.json'), }), @@ -145,7 +142,16 @@ module.exports = (env = {}) => { cwd: process.cwd(), }), workboxPlugin, - ], + ].concat( + hot + ? [] + : [ + new webpack.NormalModuleReplacementPlugin( + /vuetify\/src\/stylus\//, + dummyModule + ) + ] + ), stats: 'normal', }); };