$ npm install @vuepress/plugin-register-components
register-components plugin for vuepress
Array | String[]All components in this directory will be registered as global components, naming of components will follow the components found in .vuepress/components.
module.exports = {
plugins: [
[
'register-components',
{
componentDir: somepath
}
]
]
}
{ name: string, path: string }[]Register global components by explicit name and path.
module.exports = {
plugins: [
[
'register-components',
{
components: [
{
name: 'V-Card',
path: 'path/to/card.vue'
}
]
}
]
]
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE