update at 2026-07-26 10:44:05

This commit is contained in:
douboer@gmail.com
2026-07-26 10:44:05 +08:00
parent e21fa7dcdd
commit 007d635516
7 changed files with 219 additions and 84 deletions

20
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,20 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import wasm from 'vite-plugin-wasm'
/**
* Web 前端的通用构建配置。
*
* 此文件必须纳入版本控制UnoCSS 的 `virtual:uno.css` 由插件在构建期生成,
* 缺失配置会使任何新部署环境无法构建前端。
*/
export default defineConfig({
plugins: [vue(), UnoCSS(), wasm()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})