|
@@ -2,14 +2,16 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
+import graphql from '@rollup/plugin-graphql';
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
- plugins: [vue()],
|
|
|
|
|
|
+ plugins: [vue(), graphql()],
|
|
resolve: {
|
|
resolve: {
|
|
alias: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@components': fileURLToPath(new URL('./src/components', 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))
|
|
'@api': fileURLToPath(new URL('./src/api', import.meta.url))
|
|
}
|
|
}
|
|
}
|
|
}
|