basic2/vite/plugins/components.ts
Hooray Hu 807e3f9402 v4.0
2023-10-29 23:00:06 +08:00

13 lines
289 B
TypeScript
Executable File

import components from 'unplugin-vue-components/vite'
export default function createComponents() {
return components({
dirs: [
'src/components',
'src/layouts/ui-kit',
],
include: [/\.vue$/, /\.vue\?vue/, /\.tsx$/],
dts: './src/types/components.d.ts',
})
}