Merge pull request #162 from Amir-61/missingConfigWarning
Warn about missing main json config file
This commit is contained in:
commit
c17efda0eb
|
@ -89,6 +89,10 @@ function loadNamed(rootDir, env, name, mergeFn) {
|
|||
*/
|
||||
function findConfigFiles(appRootDir, env, name) {
|
||||
var master = ifExists(name + '.json');
|
||||
if (!master && (ifExistsWithAnyExt(name + '.local') ||
|
||||
ifExistsWithAnyExt(name + '.' + env))) {
|
||||
console.warn('WARNING: Main config file "' + name + '.json" is missing');
|
||||
}
|
||||
if (!master) return [];
|
||||
|
||||
var candidates = [
|
||||
|
|
Loading…
Reference in New Issue