Files
font2pic/frontend/vite.config.ts
2026-07-26 10:44:05 +08:00

21 lines
571 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)),
},
},
})