diff --git a/template/scripts/watchServer.js b/template/scripts/watchServer.js index c60d6d2..5625fd1 100644 --- a/template/scripts/watchServer.js +++ b/template/scripts/watchServer.js @@ -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