Skip to content

Commit

Permalink
fix: fix vuepress cant resolve custom theme under .vuepress/theme (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazzzis authored and yyx990803 committed Apr 14, 2018
1 parent 9e63469 commit 133bdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function resolveOptions (sourceDir) {
// resolve custom theme
const themeDir = siteConfig.theme
? path.resolve(__dirname, `../../vuepress-theme-${siteConfig.theme}`)
: path.resolve(sourceDir, 'theme')
: path.resolve(vuepressDir, 'theme')

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

0 comments on commit 133bdb3

Please sign in to comment.