var path = require('path');

module.exports = {
  entry: [
    './index.js'
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    publicPath: '/dist/',
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
	test: /\.js$/,
	exclude: /node_modules/,
	loader: "babel-loader"
      },
      {
	test: /\.scss$/,
        loaders: ['style', 'css', 'sass'],
      }
    ]
  },
  sassLoader: {
    includePath: [path.resolve(__dirname, './styles')]
  },
  plugins: []
};

@@ -20,16 +20,50 @@
 'path');
+%0Avar webpack = require('webpack');
 %0A%0Amodule
@@ -503,13 +503,227 @@
 ugins: %5B
+%0A    new webpack.DefinePlugin(%7B%0A      'process.env': %7B%0A%09'NODE_ENV': JSON.stringify('production')%0A      %7D%0A    %7D),%0A    new webpack.optimize.UglifyJsPlugin(%7B%0A      compress: %7B%0A        warnings: false%0A      %7D%0A    %7D)%0A  
 %5D%0A%7D;%0A

Add webpack prod plugin