Skip to content

Commit 04723be

Browse files
ekoeryantoulivz
authored andcommitted
chore: change config load order (#804)
1 parent 0aa3d95 commit 04723be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@vuepress/core/lib/prepare/loadConfig.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ module.exports = function loadConfig (vuepressDir, bustCache = true) {
1414

1515
// resolve siteConfig
1616
let siteConfig = {}
17-
if (fs.existsSync(configYmlPath)) {
18-
siteConfig = parseConfig(configYmlPath)
17+
if (fs.existsSync(configPath)) {
18+
siteConfig = parseConfig(configPath)
1919
} else if (fs.existsSync(configTomlPath)) {
2020
siteConfig = parseConfig(configTomlPath)
21-
} else if (fs.existsSync(configPath)) {
22-
siteConfig = require(configPath)
21+
} else if (fs.existsSync(configYmlPath)) {
22+
siteConfig = require(configYmlPath)
2323
}
2424

2525
return siteConfig

0 commit comments

Comments
 (0)