This commit is contained in:
2026-04-05 01:29:52 +02:00
parent aba2cfba7b
commit 5ac3847b5e
36 changed files with 677 additions and 1526 deletions
+10 -6
View File
@@ -1,4 +1,4 @@
import { defineConfig } from "vite";
import {defineConfig} from "vite";
import vue from "@vitejs/plugin-vue";
import ui from '@nuxt/ui/vite'
@@ -11,7 +11,11 @@ export default defineConfig(async () => ({
vue(),
ui()
],
resolve: {
alias: {
'@': '/src'
}
},
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
@@ -24,10 +28,10 @@ export default defineConfig(async () => ({
cors: true,
hmr: host
? {
protocol: "ws",
host,
port: 1421,
}
protocol: "ws",
host,
port: 1421,
}
: undefined,
watch: {
// 3. tell vite to ignore watching `src-tauri`