mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 20:57:17 +02:00
refactor: config path
This commit is contained in:
parent
7ecd4c9bef
commit
12cded5fa0
4 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ const fs = require('fs-extra');
|
|||
const path = require('path');
|
||||
|
||||
module.exports = function loadConfig(sourceDir, deleteCache = true) {
|
||||
const configPath = path.resolve(sourceDir, '.blogi', 'config.js');
|
||||
const configPath = path.resolve(sourceDir, 'config.js');
|
||||
if (deleteCache) {
|
||||
delete require.cache[configPath];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue