watch时忽略必定是前端的目录

This commit is contained in:
pqcqaq 2024-11-27 21:34:33 +08:00
parent 8c82b16e79
commit 88df72c589
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ const watcher = chokidar.watch(watchSourcePath, {
return (
file.endsWith('.tsx') ||
file.endsWith('.json') ||
file.endsWith('.xml')
file.endsWith('.xml') ||
file.includes('components') ||
file.includes('pages') ||
file.includes('hooks')
);
},
// awaitWriteFinish: true, // emit single event when chunked writes are completed