yan-foto/electron-reload

doc suggestion

jeremy-coleman opened this issue · 2 comments

i'm using a method not mentioned in the docs/read me which i've found pretty helpful, probably worth mentioning it for others.

import { app } from "electron"
import { createMainWindow, loadURL } from "./main-window"

const appPath = app.getAppPath()

require('electron-reload')(__dirname, {
electron: appPath,
hardResetMethod: 'exit'
});

...create window etc.

working demo here:
https://github.com/Coglite/dev/tree/storm-diagrams

appPath points to the directory where the electron app resides and not the path to electron executable. Consequently, this doesn't run on my machine and I cannot imagine why it would on your machine!

Closing due to inactivity.