mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
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;
|
let config;
|
||||||
if (fs.existsSync(configFilePath + '.js')) {
|
if (fs.existsSync(configFilePath + '.js')) {
|
||||||
|
delete require.cache[fs.dappPath(configFilePath + '.js')];
|
||||||
config = require(fs.dappPath(configFilePath + '.js'));
|
config = require(fs.dappPath(configFilePath + '.js'));
|
||||||
} else {
|
} else {
|
||||||
config = fs.readJSONSync(configFilePath + '.json');
|
config = fs.readJSONSync(configFilePath + '.json');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user