From 9bbb795d93a01b6639aaa7761f9dd2c00c8914cb Mon Sep 17 00:00:00 2001 From: lazzzis Date: Fri, 13 Apr 2018 20:09:33 -0400 Subject: [PATCH] fix: fix vuepress cant resolve custom theme under .vuepress/theme --- lib/prepare.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prepare.js b/lib/prepare.js index a193a1c498..5daf1a0c62 100644 --- a/lib/prepare.js +++ b/lib/prepare.js @@ -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)) {