Exclude non-app directories from Vite file watcher
Prevents unnecessary HMR triggers from desktop (Rust), cli, mcp, docs, tests, openspec, worktrees, .github, and .pi directories.
This commit is contained in:
parent
69afd3311f
commit
3e178edb50
|
|
@ -47,7 +47,17 @@ export default defineConfig(async () => ({
|
|||
}
|
||||
: undefined,
|
||||
watch: {
|
||||
ignored: ['**/desktop/**']
|
||||
ignored: [
|
||||
'**/desktop/**',
|
||||
'**/packages/cli/**',
|
||||
'**/packages/mcp/**',
|
||||
'**/packages/docs/**',
|
||||
'**/tests/**',
|
||||
'**/openspec/**',
|
||||
'**/.worktrees/**',
|
||||
'**/.github/**',
|
||||
'**/.pi/**'
|
||||
]
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in a new issue