mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
+6
-1
@@ -136,7 +136,12 @@ async function resolveOptions (sourceDir) {
|
||||
if (siteConfig.theme) {
|
||||
// use external theme
|
||||
try {
|
||||
themeLayoutPath = require.resolve(`vuepress-theme-${siteConfig.theme}/Layout.vue`)
|
||||
themeLayoutPath = require.resolve(`vuepress-theme-${siteConfig.theme}/Layout.vue`, {
|
||||
paths: [
|
||||
path.resolve(__dirname, '../node_modules'),
|
||||
path.resolve(sourceDir)
|
||||
]
|
||||
})
|
||||
themePath = path.dirname(themeLayoutPath)
|
||||
} catch (e) {
|
||||
throw new Error(`[vuepress] Failed to load custom theme "${
|
||||
|
||||
Reference in New Issue
Block a user