Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 8cc768b

Browse files
committed
disable window reloading on index.ejs change temporarily, #437
1 parent e04a5b5 commit 8cc768b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

template/.electron-vue/dev-client.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true
33
hotClient.subscribe(event => {
44
/**
55
* Reload browser when HTMLWebpackPlugin emits a new index.html
6+
*
7+
* Currently disabled until jantimon/html-webpack-plugin#680 is resolved.
8+
* https://github.com/SimulatedGREG/electron-vue/issues/437
9+
* https://github.com/jantimon/html-webpack-plugin/issues/680
610
*/
7-
if (event.action === 'reload') {
8-
window.location.reload()
9-
}
11+
// if (event.action === 'reload') {
12+
// window.location.reload()
13+
// }
1014

1115
/**
1216
* Notify `mainWindow` when `main` process is compiling,

0 commit comments

Comments
 (0)