123456789101112131415 |
- import {defineConfig} from 'vite'
- import vue from '@vitejs/plugin-vue'
- import {resolve} from 'path'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- // 配置根路径
- resolve: {
- // ↓路径别名,主要是这部分
- alias: {
- "@": resolve(__dirname, "./src")
- }
- }
- })
|