electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 97 forks source link

Make file watching more robust #195

Open fvgs opened 7 years ago

fvgs commented 7 years ago

Fixes #189, fixes #193

See #193 for more information

Use gaze instead of fs.watch() for file watching.

Fix an issue where fs.watch() does not detect file changes when using certain text editor features such as backupcopy in Vim.

Fix an issue where multiple change events are received for the same change.

Improve HMR speed by removing manual throttling on file changes in favor of the more robust debouncing performed by gaze.

@paulcbetts mentioned experiencing issues on Windows in #190. It would be great to hear if this resolves those issues.

fvgs commented 7 years ago

@paulcbetts Any input for moving this forward?