feat: initialize Gradle multi-module backend and Vite frontend

This commit is contained in:
2026-08-06 17:17:44 +08:00
commit 2cf32d0768
52 changed files with 2970 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 同时用于浏览器与 TauriTauri 会在 dev/build 时注入 TAURI_ENV_* 环境变量)
export default defineConfig({
plugins: [vue()],
// Tauri 期望静态资源走相对路径,且必须设置固定端口供其内嵌 WebView 使用
clearScreen: false,
server: {
port: 1420,
strictPort: true,
watch: {
ignored: ['**/src-tauri/**']
}
},
envPrefix: ['VITE_', 'TAURI_ENV_']
})