Files
WhispAssist/vite.config.ts
T
iamdoubz 02834e9cd2 Phase 1
2026-06-30 22:17:30 -05:00

22 lines
544 B
TypeScript

import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
// Tauri expects a fixed port and serves the built assets from dist/.
export default defineConfig({
plugins: [svelte()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
watch: {
// Without this, Vite's watcher races cargo writing target/debug/deps/*.dll
// on Windows and dies with EBUSY mid-build.
ignored: ["**/src-tauri/**"],
},
},
build: {
target: "esnext",
outDir: "dist",
},
});