Skip to content

Commit fe3c2d1

Browse files
committed
Revert "chore: change config load order (#804)"
This reverts commit 04723be.
1 parent f0a1f68 commit fe3c2d1

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(configPath)) {
18-
siteConfig = parseConfig(configPath)
17+
if (fs.existsSync(configYmlPath)) {
18+
siteConfig = parseConfig(configYmlPath)
1919
} else if (fs.existsSync(configTomlPath)) {
2020
siteConfig = parseConfig(configTomlPath)
21-
} else if (fs.existsSync(configYmlPath)) {
22-
siteConfig = require(configYmlPath)
21+
} else if (fs.existsSync(configPath)) {
22+
siteConfig = require(configPath)
2323
}
2424

2525
return siteConfig

0 commit comments

Comments
 (0)