This commit is contained in:
Ushko Igor 2016-10-17 11:48:22 +03:00
parent f8cb6be6f4
commit a7d720e942

View File

@ -234,9 +234,9 @@ Common.parseConfig = function(confObj, filename) {
return yamljs.parse(confObj.toString());
}
else if (filename.indexOf('.config.js') > -1) {
var confPath = require.resolve(path.resolve(filename));
delete require.cache[confPath];
return require(confPath);
var confPath = require.resolve(path.resolve(filename));
delete require.cache[confPath];
return require(confPath);
}
};