var path = require('path');
var webpack = require('webpack');
var CommonsChunkPlugin = require("./node_modules/webpack/lib/optimize/CommonsChunkPlugin");

module.exports = {
  entry: {
    app: [
      './src/scripts/router'
    ],
    landingPage: './src/scripts/LandingPageEntry'
  },
  devtool: 'source-map',
  output: {
      path: path.join(__dirname, "public"),
      filename: "[name].bundle.js",
      chunkFilename: "[id].chunk.js"
  },
  resolveLoader: {
    modulesDirectories: ['..', 'node_modules']
  },
  plugins: [
    new webpack.DefinePlugin({
      // This has effect on the react lib size.
      "process.env": {
        NODE_ENV: JSON.stringify("production")
      }
    }),
    new webpack.IgnorePlugin(/vertx/),
    new webpack.IgnorePlugin(/un~$/),
    new CommonsChunkPlugin("commons.js"),
    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.UglifyJsPlugin(),
  ],
  resolve: {
    extensions: ['', '.js', '.cjsx', '.coffee']
  },
  module: {
    loaders: [
      { test: /\.css$/, loaders: ['style', 'css']},
      { test: /\.cjsx$/, loaders: ['coffee', 'cjsx']},
      { test: /\.coffee$/, loader: 'coffee' }
    ]
  }
};

@@ -58,100 +58,8 @@
 k');
-%0Avar CommonsChunkPlugin = require(%22./node_modules/webpack/lib/optimize/CommonsChunkPlugin%22);
 %0A%0Amo
@@ -137,58 +137,8 @@
  %5D,%0A
-    landingPage: './src/scripts/LandingPageEntry'%0A
   %7D,
@@ -240,15 +240,8 @@
 e: %22
-%5Bname%5D.
 bund
@@ -252,45 +252,8 @@
 s%22,%0A
-      chunkFilename: %22%5Bid%5D.chunk.js%22%0A
   %7D,
@@ -537,24 +537,24 @@
 n(/vertx/),%0A
+
     new webp
@@ -583,50 +583,8 @@
 /),%0A
-    new CommonsChunkPlugin(%22commons.js%22),%0A
     

Remove extra code that got copied into production config