mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-12 20:23:48 +08:00
初始化
This commit is contained in:
9
admin/vite/plugins/components.ts
Normal file
9
admin/vite/plugins/components.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import components from 'unplugin-vue-components/vite'
|
||||
|
||||
export default function createComponents() {
|
||||
return components({
|
||||
dirs: ['src/components'],
|
||||
include: [/\.vue$/, /\.vue\?vue/, /\.tsx$/],
|
||||
dts: './src/types/components.d.ts',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user