We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefc8c3 commit 01142dfCopy full SHA for 01142df
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, '../node_modules'),
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