refactor: config path

This commit is contained in:
endiliey 2018-07-30 14:20:03 +08:00
parent 7ecd4c9bef
commit 12cded5fa0
4 changed files with 1 additions and 1 deletions

View file

@ -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];
}