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

var BUILD_DIR = path.resolve(__dirname, 'app/js');
var APP_DIR = path.resolve(__dirname, 'js');

var config = {
  debug: true,
  entry: APP_DIR + '/app.js',
  module: {
  	loaders: [
  		{
  			test : /\.jsx?/,
        include : APP_DIR,
        loader : 'babel'
  		}
  	]
  }
  output: {
    path: BUILD_DIR,
    filename: 'app.js'
  }
};

module.exports = config;
@@ -1,11 +1,13 @@
-var
+const
  webpack
@@ -29,19 +29,21 @@
 pack');%0A
-var
+const
  path = 
@@ -60,19 +60,21 @@
 ath');%0A%0A
-var
+const
  BUILD_D
@@ -113,19 +113,21 @@
 p/js');%0A
-var
+const
  APP_DIR
@@ -191,16 +191,54 @@
 : true,%0A
+  devtool: 'cheap-module-source-map',%0A
   entry:
@@ -238,19 +238,21 @@
  entry: 
-APP
+BUILD
 _DIR + '
@@ -333,19 +333,21 @@
 clude : 
-APP
+BUILD
 _DIR,%0A  
@@ -383,16 +383,17 @@
   %09%5D%0A  %7D
+,
 %0A  outpu
@@ -407,21 +407,19 @@
   path: 
-BUILD
+APP
 _DIR,%0A  
@@ -442,16 +442,153 @@
 .js'%0A  %7D
+,%0A  plugins: %5B%0A    new webpack.DefinePlugin(%7B%0A      'process.env': %7B%0A        'NODE_ENV': JSON.stringify('production')%0A      %7D%0A    %7D)%0A  %5D,
 %0A%7D;%0A%0Amod

Add production optimization techniques to webpack.config file for manual CLI compilation