You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
577 B
TypeScript
19 lines
577 B
TypeScript
1 year ago
|
import Components from 'unplugin-vue-components/vite'
|
||
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
||
|
|
||
|
export default (viteEnv: ImportMetaEnv) => {
|
||
|
return [
|
||
|
// https://github.com/antfu/unplugin-vue-components
|
||
|
Components({
|
||
|
// allow auto load markdown components under `./src/components/`
|
||
|
extensions: ['vue', 'md'],
|
||
|
// allow auto import and register components used in markdown
|
||
|
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
||
|
dts: 'src/components.d.ts',
|
||
|
resolvers: [
|
||
|
NaiveUiResolver(),
|
||
|
],
|
||
|
}),
|
||
|
]
|
||
|
}
|