Skip to content

Commit

Permalink
Update webpack (again) to ensure devserver doesn't break
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellamaki committed Jun 8, 2023
1 parent ac0eb8b commit f804f89
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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'),
}),
Expand All @@ -145,7 +142,16 @@ module.exports = (env = {}) => {
cwd: process.cwd(),
}),
workboxPlugin,
],
].concat(
hot
? []
: [
new webpack.NormalModuleReplacementPlugin(
/vuetify\/src\/stylus\//,
dummyModule
)
]
),
stats: 'normal',
});
};

0 comments on commit f804f89

Please sign in to comment.