From ba1416dce2eb2f3c0a955ec799fcf555a3784497 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Nov 2021 20:55:42 +0000 Subject: [PATCH 1/2] build(deps-dev): bump webpack-dev-server from 3.11.2 to 4.4.0 Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.11.2 to 4.4.0. - [Release notes](https://github.com/webpack/webpack-dev-server/releases) - [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.11.2...v4.4.0) --- updated-dependencies: - dependency-name: webpack-dev-server dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ef26c5c..2bb0e23e 100644 --- a/package.json +++ b/package.json @@ -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" } } From bc0c5a76ba1312ce9987a01761a04d0b315f363b Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Tue, 2 Nov 2021 22:23:10 +0100 Subject: [PATCH 2/2] refactor: minor changes to support webpack-dev-server 4.4.0 --- .eslintignore | 8 ++++---- scripts/devRunner.js | 12 +++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.eslintignore b/.eslintignore index c87fbd4d..d3405a7a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ -/node_modules -/assets/vendor -/out -/dist \ No newline at end of file +node_modules +assets +out +dist \ No newline at end of file diff --git a/scripts/devRunner.js b/scripts/devRunner.js index bfbea89d..aaf4c90c 100644 --- a/scripts/devRunner.js +++ b/scripts/devRunner.js @@ -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();