text: var path = require('path');
  var webpack = require('webpack');
  var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin');
  var _ = require('lodash');
  var config = module.exports = require('./main.config.js');
  
  config.output = _.merge(config.output, {
    path: path.join(__dirname, '../../public', 'assets', 'bundle'),
    filename: '[name]-bundle-[chunkhash].js',
    chunkFilename: '[id]-bundle-[chunkhash].js'
  });
  
  config.plugins.push(
    new webpack.optimize.UglifyJsPlugin({
      minimize: true,
      compress: {
        warnings: false
      }
    }),
    new ChunkManifestPlugin({
      filename: 'webpack-common-manifest.json',
      manifestVariable: 'webpackBundleManifest'
    }),
    new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    })
  );
  