-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
22 lines (20 loc) · 883 Bytes
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@components': fileURLToPath(new URL('./src/components', import.meta.url)),
'@layouts': fileURLToPath(new URL('./src/layouts', import.meta.url)),
'@images': fileURLToPath(new URL('./src/assets/images', import.meta.url)),
'@scss': fileURLToPath(new URL('./src/assets/scss', import.meta.url)),
'@icons': fileURLToPath(new URL('./src/assets/icons', import.meta.url)),
'@includes': fileURLToPath(new URL('./src/includes', import.meta.url)),
'@pages': fileURLToPath(new URL('./src/pages', import.meta.url)),
'@views': fileURLToPath(new URL('./src/views', import.meta.url)),
}
}
})