/*eslint-disable*/

var resolveHere = require('path').resolve.bind(null, __dirname);
var assignDeep = require('assign-deep');
var webpack = require('webpack');

var env = process.env.NODE_ENV || 'development';

var baseConfig = {
  entry: resolveHere('src/index'),
  output: {
    library: 'Catalog',
    libraryTarget: 'umd'
  },
  module: {
    loaders: [{test: /\.js$/, include: [resolveHere('src')], loader: 'babel'}]
  }
};

var webpackConfig = {
  // Used for the local development server
  hot: {
    entry: [
      'webpack-hot-middleware/client',
      resolveHere('src/index')
    ],
    output: {
      path: resolveHere('.'),
      filename: 'catalog.js',
      pathinfo: true
    },
    devtool: '#eval-source-map',
    plugins: [
      new webpack.DefinePlugin({
       '__DEV__': JSON.stringify(true),
       'process.env.NODE_ENV': JSON.stringify('development')
      }),
      new webpack.HotModuleReplacementPlugin(),
      new webpack.optimize.OccurenceOrderPlugin()
    ]
  },

  // 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()
    ]
  },

  // Minified production build
  production: {
    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
        }
      })
    ]
  }
};

module.exports = assignDeep({}, baseConfig, webpackConfig[env]);

@@ -157,56 +157,222 @@
 ');%0A
-%0Avar env = process.env.NODE_ENV %7C%7C 'development'
+var version = require('./package.json').version;%0A%0Avar env = process.env.NODE_ENV %7C%7C 'development';%0A%0Avar bannerPlugin = new webpack.BannerPlugin('Catalog ' + version + ' http://interactivethings.github.io/catalog/')
 ;%0A%0Av
@@ -1417,32 +1417,52 @@
 nceOrderPlugin()
+,%0A      bannerPlugin
 %0A    %5D%0A  %7D,%0A%0A  /
@@ -1868,16 +1868,36 @@
       %7D)
+,%0A      bannerPlugin
 %0A    %5D%0A 

Include Catalog banner in webpack config