17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
|
|
import { defineConfig } from "vite";
|
||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
|
||
|
|
// Vite config tuned for Tauri: fixed port, no clearing the terminal Tauri owns.
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
clearScreen: false,
|
||
|
|
server: {
|
||
|
|
port: 1420,
|
||
|
|
strictPort: true,
|
||
|
|
watch: {
|
||
|
|
// Don't watch the Rust side; Tauri handles that.
|
||
|
|
ignored: ["**/src-tauri/**"],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|