-
Notifications
You must be signed in to change notification settings - Fork 26
/
vite.config.ts
41 lines (39 loc) · 934 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import path from 'node:path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
export default defineConfig({
resolve: {
alias: {
'@': `${path.resolve(__dirname, 'src')}/`,
'@components': `${path.resolve(__dirname, 'src/components')}/`,
'@constants': `${path.resolve(__dirname, 'src/constants')}/`,
'@utils': `${path.resolve(__dirname, 'src/utils')}/`,
},
},
plugins: [
vue({
reactivityTransform: true,
}),
AutoImport({
imports: [
'vue',
'vue/macros',
'@vueuse/core',
],
dts: true,
vueTemplate: true,
dirs: [
'./src/composables',
'./src/utils',
],
}),
Components({
dirs: [
'src/components',
'src/controls-components',
],
}),
],
})