fix: ignore Visual Studio files in Vite watcher

This commit is contained in:
2026-11-09 08:09:51 +00:00
parent b7f4540140
commit b7ebf90c96
2 changed files with 11 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
node_modules node_modules
dist dist
.vs
.DS_Store .DS_Store
src/*.js src/*.js
vite.config.js vite.config.js
+10 -1
View File
@@ -1,4 +1,13 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
export default defineConfig({ plugins: [vue()] }) export default defineConfig({
plugins: [vue()],
server: {
// Visual Studio creates and locks index files under .vs while editing.
// They are unrelated to the app and must not be watched by Vite on Windows.
watch: {
ignored: ['**/.vs/**', '**/.git/**'],
},
},
})