delete require cache for config file so configs are actually reloaded
This commit is contained in:
parent
0314fb77c9
commit
c3f7c58b8d
|
@ -148,6 +148,7 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena
|
|||
|
||||
let config;
|
||||
if (fs.existsSync(configFilePath + '.js')) {
|
||||
delete require.cache[fs.dappPath(configFilePath + '.js')];
|
||||
config = require(fs.dappPath(configFilePath + '.js'));
|
||||
} else {
|
||||
config = fs.readJSONSync(configFilePath + '.json');
|
||||
|
|
Loading…
Reference in New Issue