You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
627 B
21 lines
627 B
/**
|
|
* Introduces component library styles on demand.
|
|
* https://github.com/antfu/unplugin-vue-components
|
|
*/
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import ViteComponents, { VantResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
export function configAutoComponentsPlugin() {
|
|
return Components({
|
|
// 指定组件位置,默认是src/components
|
|
dirs: ['src/components'],
|
|
extensions: ['vue', 'tsx'],
|
|
// 配置文件生成位置
|
|
dts: 'src/components.d.ts',
|
|
// 搜索子目录
|
|
deep: true,
|
|
// 允许子目录作为组件的命名空间前缀。
|
|
directoryAsNamespace: false
|
|
// include:[]
|
|
})
|
|
}
|