mirror of https://github.com/Fabio286/antares.git
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:
commit
17c6686163
|
@ -1,4 +1,4 @@
|
||||||
/node_modules
|
node_modules
|
||||||
/assets/vendor
|
assets
|
||||||
/out
|
out
|
||||||
/dist
|
dist
|
|
@ -158,6 +158,6 @@
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.6.14",
|
||||||
"webpack": "^5.60.0",
|
"webpack": "^5.60.0",
|
||||||
"webpack-cli": "^4.9.1",
|
"webpack-cli": "^4.9.1",
|
||||||
"webpack-dev-server": "^3.11.2"
|
"webpack-dev-server": "^4.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,14 +113,16 @@ function startRenderer (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const server = new WebpackDevServer(compiler, {
|
const server = new WebpackDevServer(compiler, {
|
||||||
contentBase: path.join(__dirname, '../'),
|
static: path.join(__dirname, '../'),
|
||||||
hot: true,
|
hot: true,
|
||||||
noInfo: true,
|
port: 9080,
|
||||||
|
client: {
|
||||||
overlay: true,
|
overlay: true,
|
||||||
clientLogLevel: 'warning'
|
logging: 'warn'
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen(9080, '', err => {
|
server.startCallback(err => {
|
||||||
if (err) console.error(chalk.red(err));
|
if (err) console.error(chalk.red(err));
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
|
|
Loading…
Reference in New Issue