mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-26 13:46:05 +10:00
Merge branch 'next' of https://github.com/vuejs/vuepress into next
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = async function loadTheme (theme, sourceDir, vuepressDir) {
|
||||
// resolve theme
|
||||
const localThemePath = path.resolve(vuepressDir, 'theme')
|
||||
const useLocalTheme =
|
||||
(await fs.exists(localThemePath)) && ((await fs.readdir(localThemePath)).length > 0)
|
||||
fs.existsSync(localThemePath) && (fs.readdirSync(localThemePath)).length > 0
|
||||
|
||||
let themePath = null // Mandatory
|
||||
let themeIndexFile = null // Optional
|
||||
|
||||
Reference in New Issue
Block a user