Update webpack-dev-server to 4.15.1

This commit is contained in:
Johannes Marbach 2023-09-22 20:57:00 +02:00
parent 218a3b478d
commit e0954f330a
3 changed files with 341 additions and 512 deletions

View file

@ -728,14 +728,23 @@ module.exports = (env, argv) => {
// configuration for the webpack-dev-server
devServer: {
// serve unwebpacked assets from webapp.
contentBase: ["./webapp"],
static: {
// Where to serve static assets from
directory: "./webapp",
},
// Only output errors, warnings, or new compilations.
// This hides the massive list of modules.
stats: "minimal",
hotOnly: true,
inline: true,
devMiddleware: {
// Only output errors, warnings, or new compilations.
// This hides the massive list of modules.
stats: "minimal",
},
// Enable Hot Module Replacement without page refresh as a fallback in
// case of build failures
hot: "only",
// Disable host check
allowedHosts: 'all',
},
};
};