electron-compile
electron-compile copied to clipboard
Use chokidar instead of fs for watching files.
This fixes #189 by changing the watchPath function to use chokidar.
No more multiple watch events being called, we can remove the throttling done by the hot reloading code.
Chokidar doesn't work on Windows - we dedupe notifications here: https://github.com/electron/electron-compile/blob/master/src/live-reload.js#L56
@paulcbetts The debounce solution doesn't seem to work on my mac - events happen more than a second apart. I'm pretty sure it does work on windows, webpack's dev server uses it?
I'm having problems installing electron-forge on my windows computer but a rough test script with chokidar works as expected.