Closed thezzisu closed 4 years ago
You need to add the file to the mainProcessWatch
array in vue.config.js
:
// vue.config.js
module.exports = {
pluginOptions: {
electronBuilder: {
// Provide an array of files that, when changed, will recompile the main process and restart Electron
// Your main process file will be added by default
mainProcessWatch: ['src/myFile1', 'src/myFile2'],
}
}
}
can I do something like this @nklayman
@BroJenuel no, glob files are not supported for mainProcessWatch. However, you can add directories to that list and all contents will be watched.
@BroJenuel no, glob files are not supported for mainProcessWatch. However, you can add directories to that list and all contents will be watched.
awesome, thanks a lot <3 more power
delete dist_electron
generated by electron:build
, and run electron:server
, it would reload well when change background.js.
Describe the bug Hot-Reload wont work when despondencies of background.js changed.
To Reproduce Steps to reproduce the behavior:
Edit
src/common/config.ts
, but the background process wont be reloaded Expected behavior background process should be reloaded after its dependencies updatedScreenshots
Environment (please complete the following information):
Microsoft Windows [Version 10.0.18363.778]
v14.2.0
6.14.4
1.22.4
^1.4.6