   return
 
 gulp.task "webpack-dev-server", (callback) ->
-  config = Object.create(webpackConfig)
+  config = _.extend {}, webpackConfig
 
   # Start a webpack-dev-server.
   new WebpackDevServer(webpack(config),

webpack = require("webpack")
WebpackDevServer = require("webpack-dev-server")
webpackConfig = require("./webpack.config.js")

# Load plugins
$ = require('gulp-load-plugins')()

    new webpack.optimize.UglifyJsPlugin()
  )

  # Don't use react-hot-loader for the production build.
  config.module.loaders[1] =
    { test: /\.cjsx$/, loaders: ['coffee', 'cjsx']}

  # Run webpack.
  webpack config, (err, stats) ->
    throw new gutil.PluginError("webpack:build", err)  if err
