starting refactor to shadcn and redb

This commit is contained in:
xyroscar
2025-11-23 19:03:09 -08:00
parent 72e2573f1e
commit 9bb1d91f56
55 changed files with 4163 additions and 4328 deletions

View File

@@ -1,3 +1,4 @@
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import { sveltekit } from "@sveltejs/kit/vite";
@@ -6,8 +7,7 @@ const host = process.env.TAURI_DEV_HOST;
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [sveltekit()],
plugins: [tailwindcss(), sveltekit()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
@@ -17,16 +17,8 @@ export default defineConfig(async () => ({
port: 1420,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 1421,
}
: undefined,
watch: {
// 3. tell vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},
hmr: host ? { protocol: "ws", host, port: 1421 } : undefined,
watch: { // 3. tell vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"] }
}
}));