24 lines
885 B
JavaScript
24 lines
885 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
vueDevTools(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@' : fileURLToPath(new URL('./src' , import.meta.url)),
|
|
'@a': fileURLToPath(new URL('./src/assets/' , import.meta.url)),
|
|
'@c': fileURLToPath(new URL('./src/components/' , import.meta.url)),
|
|
'@v': fileURLToPath(new URL('./src/views/' , import.meta.url)),
|
|
'@l': fileURLToPath(new URL('./src/layout/' , import.meta.url)),
|
|
'@s': fileURLToPath(new URL('./src/stores/' , import.meta.url)),
|
|
'@p': fileURLToPath(new URL('./src/common/plugin/' , import.meta.url)),
|
|
},
|
|
},
|
|
})
|