Prechádzať zdrojové kódy

Exclude the 'backend' folder from the Vite watcher.

This avoids unnecessary reloads when working on the backend.
Duncan Ogilvie 4 mesiacov pred
rodič
commit
41220b379f
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      vite.config.ts

+ 4 - 1
vite.config.ts

@@ -35,7 +35,10 @@ export default defineConfig({
 		APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build')
 	},
 	build: {
-		sourcemap: true
+		sourcemap: true,
+		watch: {
+			exclude: ['backend']
+		}
 	},
 	worker: {
 		format: 'es'