This commit is contained in:
Christoph Brandau
2026-06-27 13:03:07 +02:00
commit 3b9d636fdb
25 changed files with 9890 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [svelte()],
clearScreen: false,
server: {
strictPort: true,
port: 1420,
},
envPrefix: ["VITE_", "TAURI_"],
build: {
target: process.env.TAURI_ENV_PLATFORM === "windows" ? "chrome105" : "safari13",
minify: !process.env.TAURI_ENV_DEBUG ? "esbuild" : false,
sourcemap: Boolean(process.env.TAURI_ENV_DEBUG),
},
});