const webpack = require('webpack');

function config(baseConfig) {
  const conf = {
    plugins: [
      new webpack.optimize.UglifyJsPlugin(),
    ],
  };
  return Object.assign({}, baseConfig, conf);
}

module.exports = config;

@@ -92,16 +92,146 @@
 gins: %5B%0A
+      new webpack.DefinePlugin(%7B%0A        'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV %7C%7C 'development'),%0A      %7D),%0A
       ne

Add DefinePlugin in Webpack production config [skip ci]