Closed probablykasper closed 2 months ago
Setting watch: null does not disable watching. My config:
watch: null
{ entry: ['./src/electron/main.ts', './src/electron/preload.ts'], vite: { watch: null, build: { outDir: './build/electron', emptyOutDir: true, rollupOptions: { external: [/^.*\.node$/], }, }, }, }
onstart({ startup }) { if (process.electronApp) { console.log('\x1b[35mNot restarting\x1b[0m') } else { startup() } }
Problem
Setting
watch: null
does not disable watching. My config:Workaround