Update webpack dev server config & webpack-cli package

This commit is contained in:
Jeremy Benoist
2022-01-05 16:40:08 +01:00
parent a641925bf9
commit 100469025a
3 changed files with 26 additions and 29 deletions

View File

@ -10,14 +10,12 @@ module.exports = merge(commonConfig, {
},
mode: 'development',
devServer: {
hot: true,
// enable HMR on the server
contentBase: './web',
// match the output path
static: {
directory: './web',
},
},
plugins: [
new ESLintPlugin(),
new webpack.HotModuleReplacementPlugin(),
],
module: {
rules: [