old_contents: /*eslint-disable*/
  
  var resolveHere = require('path').resolve.bind(null, __dirname);
  var assignDeep = require('assign-deep');
  var webpack = require('webpack');
  var version = require('./package.json').version;
  
  var env = process.env.NODE_ENV || 'development';
  
  var bannerPlugin = new webpack.BannerPlugin('Catalog ' + version + ' http://interactivethings.github.io/catalog/');
  
  var baseConfig = {
    entry: resolveHere('src/index-standalone'),
    output: {
      library: 'Catalog',
      libraryTarget: 'umd'
    },
    module: {
      loaders: [{test: /\.js$/, include: [resolveHere('src')], loader: 'babel'}],
      noParse: /\.min\.js$/
    }
  };
  
  var webpackConfig = {
    // Used for the local development server
    hot: {
      entry: [
        'webpack-hot-middleware/client?noInfo=true&reload=true',
        resolveHere('src/index-standalone')
      ],
      output: {
        path: resolveHere('.'),
        filename: 'catalog.js',
        pathinfo: true
      },
      externals: {
        'babel-standalone': 'Babel'
      },
      devtool: '#eval-source-map',
      plugins: [
        new webpack.DefinePlugin({
         'process.env.NODE_ENV': JSON.stringify('catalog-hot-development')
        }),
        new webpack.HotModuleReplacementPlugin(),
        new webpack.optimize.OccurenceOrderPlugin()
      ]
    },
  
    // The standalone builds are now built with Rollup because the resulting files are around 13–21% smaller
  
    // // Used for unminified development build
    // development: {
    //   plugins: [
    //     new webpack.DefinePlugin({
    //      '__DEV__': JSON.stringify(true),
    //      'process.env.NODE_ENV': JSON.stringify('development')
    //     }),
    //     new webpack.optimize.OccurenceOrderPlugin(),
    //     bannerPlugin
    //   ]
    // },
  
    // // Minified production build
    // production: {
    //   resolve: {
    //     alias: {
    //       // Shaves off 70 kB from minified build!
    //       'js-yaml': 'js-yaml/dist/js-yaml.min.js'
    //     }
    //   },
    //   plugins: [
    //     new webpack.DefinePlugin({
    //       '__DEV__': JSON.stringify(false),
    //       'process.env.NODE_ENV': JSON.stringify('production')
    //     }),
    //     new webpack.optimize.DedupePlugin(),
    //     new webpack.optimize.OccurenceOrderPlugin(),
    //     new webpack.optimize.UglifyJsPlugin({
    //       compress: {
    //         warnings: false
    //       }
    //     }),
    //     bannerPlugin
    //   ]
    // }
  };
  
  module.exports = assignDeep({}, baseConfig, webpackConfig[env]);
  
new_contents: const resolveHere = require('path').resolve.bind(null, __dirname);
  const webpack = require('webpack');
  
  module.exports = {
    entry: [
      'webpack-hot-middleware/client?noInfo=true&reload=true',
      resolveHere('src/index-standalone')
    ],
    output: {
      library: 'Catalog',
      libraryTarget: 'umd',
      path: resolveHere('.'),
      filename: 'catalog.js',
      pathinfo: true
    },
    module: {
      loaders: [
        {test: /\.js$/, include: resolveHere('src'), loader: 'babel'}
      ],
      noParse: /\.min\.js$/
    },
    externals: {
      'babel-standalone': 'Babel'
    },
    devtool: '#eval-source-map',
    plugins: [
      new webpack.HotModuleReplacementPlugin()
    ]
  };
  
subject: Clean up webpack config