Skip to content

Commit d8813e2

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ export function startLocalChangeWatcher({
6565
watchPath: string;
6666
}) {
6767
const wsServer = new WebSocketServer({ server });
68-
const watcher = chokidar.watch(watchPath);
68+
const watcher = chokidar.watch(watchPath, {
69+
ignored: /node_modules|\.git/,
70+
persistent: true,
71+
});
6972
watcher.on("change", () => {
7073
wsServer.clients.forEach((client) => {
7174
if (client.readyState === WebSocket.OPEN) {

0 commit comments

Comments
 (0)