ufutx-pc-website/vite.config.ts

13 lines
273 B
TypeScript
Raw Normal View History

2025-06-09 10:23:45 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path' // 引入 path 模块
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src') // 添加路径别名
}
}
})