-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot-Reload not working in background.js dependencies #741
Comments
You need to add the file to the // 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. |
awesome, thanks a lot <3 more power |
delete |
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 reloadedExpected behavior
background process should be reloaded after its dependencies updated
Screenshots
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
The text was updated successfully, but these errors were encountered: