-
-
Notifications
You must be signed in to change notification settings - Fork 31
When the app is reloaded the original terminal is closed #13
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
Comments
I'm also experiencing this. |
If you just need static files reloaded, you can insert the following code in the renderer process. const watcher = require("chokidar").watch(path.join(__dirname, "public"));
watcher.on("change", () => {
for (const window_ of BrowserWindow.getAllWindows()) {
window_.webContents.reloadIgnoringCache();
for (const view_ of window_.getBrowserViews()) {
view_.webContents.reloadIgnoringCache();
}
}
}) |
I'm experiencing this too. |
Same thing here, |
+1 |
Anyone solve this in some way? |
no sorry, currently using electronmon, which does the job just fine. although they have the problem of not correctly reloading BrowserViews, if you make use of those. |
electronmon is great thanks |
I run my Electron app using
electron ./build/index.js
, it logs to stdout/stderr and I also run arepl
terminal. However, when using this library and any file is modified (so the app is restarted), the process running in the terminal is terminated and I no longer see logs.Is this expected?
The text was updated successfully, but these errors were encountered: