mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 05:55:38 +08:00
Fix: ignore node_modules and .git in chokidar watcher to prevent ENOSPC error
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
4cda665886
commit
a2d313fe1b
|
|
@ -65,7 +65,11 @@ export default async (src: string = 'deps') => {
|
|||
|
||||
const source = path.join(config.rootPath, src);
|
||||
const watcher = chokidar.watch(source, {
|
||||
ignored: /(^|[\/\\])\../, // ignore dotfiles
|
||||
ignored: [
|
||||
/(^|[\/\\])\../, // ignore dotfiles
|
||||
'**/node_modules/**', // ignore node_modules
|
||||
'**/.git/**', // ignore .git
|
||||
],
|
||||
persistent: true,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user