Skip to content

Commit 8cc768b

Browse files
committed
disable window reloading on index.ejs change temporarily, SimulatedGREG#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

Lines changed: 7 additions & 3 deletions
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)