Skip to content

Commit 04588cc

Browse files
committed
feat($core): register 'themePath/global-components' dir as global components
it also close #916
1 parent bd735fb commit 04588cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/@vuepress/core/lib/prepare/AppContext.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ module.exports = class AppContext {
122122
.use('@vuepress/last-updated', shouldUseLastUpdated)
123123
.use('@vuepress/register-components', {
124124
componentsDir: [
125-
path.resolve(this.sourceDir, '.vuepress/components')
125+
path.resolve(this.sourceDir, '.vuepress/components'),
126+
path.resolve(this.themePath, 'global-components')
126127
]
127128
})
128129
}

0 commit comments

Comments
 (0)