module.exports = (options, req) => {
  const base = {
    entry: {
      'vuex-geolocation': './src/vuex-geolocation.js',
      'geolocation-utilities': './src/geolocation-utilities.js'
    },
    sourceMap: false,
    vendor: false
  };

  const dev = {
    entry: './src/demo.js'
  };

  const production = {
    html: false,
    library: true,
    filename: {
      js: '[name].js'
    }
  };
  const extend = options.mode === 'production' ? production : dev;
  return {
    ...base,
    ...extend
  };
};

{'avg_line_length': 18.178571428571427, 'max_line_length': 66, 'alphanum_fraction': 0.5422396856581533, 'licenses': ['MIT'], 'repository_name': 'pulilab/vuex-geolocation', 'path': 'poi.config.js', 'size': 509, 'lang': 'JavaScript'}