diff options
| author | 2026-01-19 14:17:32 +0800 | |
|---|---|---|
| committer | 2026-01-19 14:17:32 +0800 | |
| commit | da0d79f0db873c08fab3bc85023167e174d18b0e (patch) | |
| tree | 4a1934780d0d723ec8b834088188d4714f2cf3e7 /packages/ui/vite.config.ts | |
| parent | 887e415314014c3da7db3048fa0e724f3078c5cb (diff) | |
| download | DropOut-da0d79f0db873c08fab3bc85023167e174d18b0e.tar.gz DropOut-da0d79f0db873c08fab3bc85023167e174d18b0e.zip | |
chore(ui): refactor workspace to monorepo
Diffstat (limited to 'packages/ui/vite.config.ts')
| -rw-r--r-- | packages/ui/vite.config.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/ui/vite.config.ts b/packages/ui/vite.config.ts new file mode 100644 index 0000000..32610e2 --- /dev/null +++ b/packages/ui/vite.config.ts @@ -0,0 +1,26 @@ +import { defineConfig } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; +import tailwindcss from "@tailwindcss/vite"; + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [tailwindcss(), svelte()], + + // Fix for Tauri + Vite HMR + server: { + host: true, + strictPort: true, + hmr: { + protocol: "ws", + host: "localhost", + port: 5173, + }, + watch: { + usePolling: true, + }, + }, + + // Ensure compatibility with Tauri + clearScreen: false, + envPrefix: ["VITE_", "TAURI_"], +}); |