Add Svelte 5 frontend (App, TitleBar, BlockRing, ModelStack, WeeklyBar, Settings)
This commit is contained in:
parent
14ffcf4bd3
commit
0e8a87fbc5
17 changed files with 779 additions and 0 deletions
21
vite.config.ts
Normal file
21
vite.config.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { defineConfig } from "vite";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
|
||||
// Tauri 2 expects the dev server on a fixed port and forwards the URL into
|
||||
// the webview. https://v2.tauri.app/start/frontend/vite/
|
||||
export default defineConfig(async () => ({
|
||||
plugins: [svelte()],
|
||||
clearScreen: false,
|
||||
server: {
|
||||
port: 1420,
|
||||
strictPort: true,
|
||||
host: "127.0.0.1",
|
||||
hmr: { protocol: "ws", host: "127.0.0.1", port: 1421 },
|
||||
watch: { ignored: ["**/src-tauri/**"] },
|
||||
},
|
||||
build: {
|
||||
target: "esnext",
|
||||
minify: "esbuild",
|
||||
sourcemap: false,
|
||||
},
|
||||
}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue