generated from Moonofweisheng/uniapp-vue3-fant-ts
-
Notifications
You must be signed in to change notification settings - Fork 12
/
vite.config.ts
38 lines (37 loc) · 811 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
/*
* @Author: weisheng
* @Date: 2023-03-21 22:49:24
* @LastEditTime: 2023-09-03 13:07:25
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-starter\vite.config.ts
* 记得注释
*/
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import AutoImport from 'unplugin-auto-import/vite'
import Unocss from 'unocss/vite'
export default defineConfig({
base: './',
plugins: [
uni(),
Unocss(),
AutoImport({
imports: [
'vue',
'uni-app',
'pinia',
{
from: 'uni-mini-router',
imports: ['createRouter', 'useRouter', 'useRoute']
}
],
dts: 'src/auto-imports.d.ts',
dirs: ['src/store'],
eslintrc: {
enabled: true,
globalsPropValue: true
}
})
]
})