Skip to content

Commit a02d368

Browse files
committed
開発用にwatchからnode_modulesとかをignoreしておく
1 parent dab97ad commit a02d368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export function startLocalChangeWatcher({
6666
}) {
6767
const wsServer = new WebSocketServer({ server });
6868
const watcher = chokidar.watch(watchPath, {
69-
ignored: ["**/.remote/**"],
69+
ignored: [/node_modules|\.git/, "**/.remote/**"],
70+
persistent: true,
7071
});
7172
watcher.on("change", () => {
7273
wsServer.clients.forEach((client) => {

0 commit comments

Comments
 (0)