I want to ignore changes to every directory except one. So I tried: /^(?!(web)).*/
. It seems to work in theory, as tested here: https://regex101.com/r/W6WQkS/1
However, it doesn't work with your module, this fails to ignore directories other than web/
:
try {
require("electron-reloader")(module, { ignored: [/^(?!(web)).*/] });
} catch (_) {}
console.log('debug 1')
const { BrowserWindow, app } = require("electron");
I looked deeper into your code to see how you're using chokidar
and isolated a pure chokidar
example and that seemed to create the same problem. Created an issue with them paulmillr/chokidar#1128
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too