Merge pull request #133 from Fabio286/dependabot/npm_and_yarn/webpack-dev-server-4.4.0

build(deps-dev): bump webpack-dev-server from 3.11.2 to 4.4.0
This commit is contained in:
Fabio Di Stasio 2021-11-02 22:23:56 +01:00 committed by GitHub
commit 17c6686163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 10 deletions

View File

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

View File

@ -158,6 +158,6 @@
"vue-template-compiler": "^2.6.14",
"webpack": "^5.60.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^4.4.0"
}
}

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();