18 lines
372 B
TypeScript
18 lines
372 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// Tauri expects a fixed dev server port and relative asset paths.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
clearScreen: false,
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
},
|
|
envPrefix: ["VITE_", "TAURI_"],
|
|
build: {
|
|
target: "esnext",
|
|
outDir: "dist",
|
|
},
|
|
});
|