mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 16:51:59 +03:00
Vite defaulted to an IPv6-only bind, so tauri dev's readiness probe (which checks 127.0.0.1) waited forever even though Vite was up. Separately, its file watcher was watching Rust's build output and crashed on a locked .pdb file mid-compile.
17 lines
286 B
TypeScript
17 lines
286 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
clearScreen: false,
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 1420,
|
|
strictPort: true,
|
|
watch: {
|
|
ignored: ["**/src-tauri/**"],
|
|
},
|
|
},
|
|
build: {
|
|
target: "es2022",
|
|
outDir: "dist",
|
|
},
|
|
});
|