fix getting .json config file
This commit is contained in:
parent
2793432b87
commit
b804f51de5
|
@ -87,7 +87,7 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena
|
||||||
if (fs.existsSync(configFilePath + '.js')) {
|
if (fs.existsSync(configFilePath + '.js')) {
|
||||||
config = require(fs.dappPath(configFilePath + '.js'));
|
config = require(fs.dappPath(configFilePath + '.js'));
|
||||||
} else {
|
} else {
|
||||||
config = fs.readJSONSync(configFilePath);
|
config = fs.readJSONSync(configFilePath + '.json');
|
||||||
}
|
}
|
||||||
let configObject = utils.recursiveMerge(defaultConfig, config);
|
let configObject = utils.recursiveMerge(defaultConfig, config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue