const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    entry:  './src/index.js',
    output: {
        path: './build',
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            {
                test:   /\.js/,
                loaders: ['babel-loader']
            },
            {
                test: /\.scss$/,
                loaders: ['style-loader', 'css-loader', 'sass-loader']
            }
        ]
    },
    plugins: [
        new webpack.optimize.UglifyJsPlugin(),
        new webpack.optimize.AggressiveMergingPlugin(),
        new CopyWebpackPlugin([
            { from: 'src/favicon.ico' }
        ])
    ]
};

@@ -509,24 +509,169 @@
  plugins: %5B%0A
+        new webpack.DefinePlugin(%7B%0A            'process.env': %7B%0A                NODE_ENV: JSON.stringify('production')%0A            %7D%0A        %7D),%0A
         new 

use production react in build