Skip to content

Commit 133bdb3

Browse files
lazzzisyyx990803
authored andcommitted
fix: fix vuepress cant resolve custom theme under .vuepress/theme (#3)
1 parent 9e63469 commit 133bdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prepare.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function resolveOptions (sourceDir) {
114114
// resolve custom theme
115115
const themeDir = siteConfig.theme
116116
? path.resolve(__dirname, `../../vuepress-theme-${siteConfig.theme}`)
117-
: path.resolve(sourceDir, 'theme')
117+
: path.resolve(vuepressDir, 'theme')
118118

119119
const themePath = path.resolve(themeDir, 'Layout.vue')
120120
if (fs.existsSync(themePath)) {

0 commit comments

Comments
 (0)