Skip to content

Commit

Permalink
feat($core): register 'themePath/global-components' dir as global com…
Browse files Browse the repository at this point in the history
…ponents

it also close #916
  • Loading branch information
ulivz committed Oct 9, 2018
1 parent bd735fb commit 04588cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vuepress/core/lib/prepare/AppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ module.exports = class AppContext {
.use('@vuepress/last-updated', shouldUseLastUpdated)
.use('@vuepress/register-components', {
componentsDir: [
path.resolve(this.sourceDir, '.vuepress/components')
path.resolve(this.sourceDir, '.vuepress/components'),
path.resolve(this.themePath, 'global-components')
]
})
}
Expand Down

0 comments on commit 04588cc

Please sign in to comment.