19 lines
579 B
JavaScript
19 lines
579 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import graphql from '@rollup/plugin-graphql';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), graphql()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@components': fileURLToPath(new URL('./src/components', import.meta.url)),
|
|
'@views': fileURLToPath(new URL('./src/views', import.meta.url)),
|
|
'@api': fileURLToPath(new URL('./src/api', import.meta.url))
|
|
}
|
|
}
|
|
})
|