module.exports = function(file, plugins) {
  if (plugins.globby.sync('./config/' + file).length) {
    return require('../config/' + file);
  }
  else {
    plugins.util.log(
      plugins.util.colors.red('\n========================================= \n')
      + plugins.util.colors.yellow('You have to create ')
      + plugins.util.colors.blue('config/' + file)
      + plugins.util.colors.red('\n=========================================')
    );
    throw new plugins.util.PluginError({
      plugin: 'config',
      message: 'You have to create config/' + file
    });
  }
}

module.exports = function(file, plugins) {
  if (plugins.globby.sync('../../../dev/tools/frontools/configs/' + file).length) {
    return require('../../../../dev/tools/frontools/configs/' + file);
  } else if (plugins.globby.sync('./config/' + file).length) {
    return require('../config/' + file);
  } else {
    plugins.util.log(
      plugins.util.colors.red('\n========================================= \n')
      + plugins.util.colors.yellow('You have to create ')
      + plugins.util.colors.blue('config/' + file)
      + plugins.util.colors.red('\n=========================================')
    );
    throw new plugins.util.PluginError({
      plugin: 'config',
      message: 'You have to create config/' + file
    });
  }
}

Allow for config outside of vendor directory
Allow for config outside of vendor directory
