
module.exports = (config, webpack) => {
  config.plugins.push(new webpack.optimize.UglifyJsPlugin({
    compress: {
      warnings: false,
    },
    mangle: {
      keepFnames: true,
      except: ['exports', 'require'],
    },
  }));
  return config;
};

