-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 684 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 684 Bytes
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
import { defineConfig } from 'vite'
import { URL, fileURLToPath } from 'node:url'
import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite'
export default defineConfig({
plugins: [
vue(),
UnoCSS(),
Components({
dirs: ['app/components'],
resolvers: [
IconsResolver({
prefix: ''
})
]
}),
Icons()
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'~': fileURLToPath(new URL('./app', import.meta.url))
}
}
})