From af897bf669407160235c9d0e31c2c97b20308d00 Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Sat, 13 Nov 2021 23:03:34 +0100 Subject: [PATCH] Fix HMR Signed-off-by: Jonas Rittershofer --- package.json | 4 ++-- webpack.js | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0942616..5382292 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "vue-loader": "^15.9.6", "vue-template-compiler": "^2.6.12", "webpack": "~5.64.0", - "webpack-cli": "^4.5.0", + "webpack-cli": "^4.7.0", "webpack-dev-server": "^4.0.0" }, "devDependencies": { @@ -59,7 +59,7 @@ "vue-loader": "^15.9.6", "vue-template-compiler": "^2.6.12", "webpack": "~5.64.0", - "webpack-cli": "^4.5.0", + "webpack-cli": "^4.7.0", "webpack-dev-server": "^4.0.0" } } diff --git a/webpack.js b/webpack.js index 688200d..59b98f0 100644 --- a/webpack.js +++ b/webpack.js @@ -62,9 +62,14 @@ module.exports = { devServer: { hot: true, - port: 3000, - writeToDisk: true, host: '127.0.0.1', + port: 3000, + client: { + overlay: false, + }, + devMiddleware: { + writeToDisk: true, + }, headers: { 'Access-Control-Allow-Origin': '*', },