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', }); };