We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82cd8bd commit 148e848Copy full SHA for 148e848
lib/prepare.js
@@ -136,7 +136,12 @@ async function resolveOptions (sourceDir) {
136
if (siteConfig.theme) {
137
// use external theme
138
try {
139
- themeLayoutPath = require.resolve(`vuepress-theme-${siteConfig.theme}/Layout.vue`)
+ themeLayoutPath = require.resolve(`vuepress-theme-${siteConfig.theme}/Layout.vue`, {
140
+ paths: [
141
+ path.resolve(__dirname),
142
+ path.resolve(sourceDir)
143
+ ]
144
+ })
145
themePath = path.dirname(themeLayoutPath)
146
} catch (e) {
147
throw new Error(`[vuepress] Failed to load custom theme "${
0 commit comments