const path = require('path');
const webpack = require('webpack');

module.exports = {
  entry: [
    'babel-polyfill',
    './app/index'
  ],
  output: {
    path: path.resolve(__dirname, 'public/assets/javascript'),
    filename: 'index.js',
    publicPath: 'public/assets/javascript/'
  },
  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.UglifyJsPlugin()
  ],
  module: {
    loaders: [
      {
        loader: 'babel-loader',
        include: [
          path.resolve(__dirname, 'app'),
        ],
        exclude: /node_modules/,
        test: /\.js/,
        query: {
          plugins: ['transform-runtime'],
          presets: ['es2015', 'react']
        }
      }
    ]
  }
};
@@ -347,16 +347,133 @@
 ugin(),%0A
+    new webpack.DefinePlugin(%7B%0A      'process.env': %7B%0A        NODE_ENV: JSON.stringify('production')%0A      %7D%0A    %7D),%0A
     new 
@@ -833,8 +833,9 @@
 %5D%0A  %7D%0A%7D;
+%0A

Refactor webpack production config to minify reactjs.