completly disable opted-out components

This commit is contained in:
Iuri Matias 2018-03-31 21:08:25 -04:00
parent bab0171120
commit 02e407f90b
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ Config.prototype.reloadConfig = function() {
Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env) { Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env) {
if (!configFilePath) { if (!configFilePath) {
return defaultConfig['default'] || {}; let configToReturn = defaultConfig['default'] || {}
configToReturn.enabled = false;
return configToReturn;
} }
if (!fs.existsSync(configFilePath)) { if (!fs.existsSync(configFilePath)) {