mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
fix vite dev server: bind 127.0.0.1, ignore src-tauri/target
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.
This commit is contained in:
parent
f33381adc2
commit
0d0e6901b9
1 changed files with 4 additions and 0 deletions
|
|
@ -3,8 +3,12 @@ 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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue