Files
Mainpage/vite.config.js

12 lines
271 B
JavaScript
Raw Normal View History

2025-03-01 21:30:49 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2025-03-02 22:42:09 +08:00
import path from 'path' // 引入 path 模块
2025-03-01 21:30:49 +08:00
export default defineConfig({
2025-03-02 22:11:27 +08:00
plugins: [vue()],
2025-03-02 22:42:09 +08:00
resolve: {
alias: {
'@': path.resolve(__dirname, './src') // 配置 @ 别名
}
}
})