code: function configFactory(filename, options) {
      if (!_.isObject(options)) {
          options = {};
      }
  
      var config = WebpackConfig.loader.loadConfig(filename),
          isArray = _.isArray(config);
  
      if (!isArray) {
          config = [config];
      }
  
      config = _.map(config, function(x) {
          x.merge(options);
          x.defaults({
              output: {
                  path: path.dirname(filename)
              }
          });
  
          return x;
      });
  
      return isArray ? config : _.first(config);
  }
docs: Creates config
  @alis configFactory
  @private
  @param {String} filename
  @param {Configuration=} options
  @returns {Config|Config[]}