refactor: minor changes to support webpack-dev-server 4.4.0

This commit is contained in:
Fabio Di Stasio 2021-11-02 22:23:10 +01:00
parent ba1416dce2
commit bc0c5a76ba
2 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/node_modules
/assets/vendor
/out
/dist
node_modules
assets
out
dist

View File

@ -113,14 +113,16 @@ function startRenderer (callback) {
});
const server = new WebpackDevServer(compiler, {
contentBase: path.join(__dirname, '../'),
static: path.join(__dirname, '../'),
hot: true,
noInfo: true,
overlay: true,
clientLogLevel: 'warning'
port: 9080,
client: {
overlay: true,
logging: 'warn'
}
});
server.listen(9080, '', err => {
server.startCallback(err => {
if (err) console.error(chalk.red(err));
callback();