Skip to content

Allow per-component overriding #207

Closed
@davestewart

Description

@davestewart

It would be really useful to be able to override theme-components on a per-component basis.

If they were registered globally not locally, could we then override them in enhanceApp? :

import Home from './components/theme/Home'

export default ({ Vue, options, router }) => {
    Vue.component('home', Home)
}

Either that, or specify components in config.js ?:

import Home from './components/theme/Home'

themeConfig: {
    components: {
        home: Home
    }
}

Maybe eject could be modified, or a new command added to extract the component to override:

vuepress extract Home.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions