 webpack = require("webpack")
 WebpackDevServer = require("webpack-dev-server")
 webpackConfig = require("./webpack.config.js")
+_ = require 'underscore'
 
 # Load plugins
 $ = require('gulp-load-plugins')()

    callback()
    return

  return


# Modify some webpack config options.
devConfig = Object.create(webpackConfig)
devConfig.devtool = "sourcemap"
devConfig.debug = true


  return

gulp.task "webpack-dev-server", (callback) ->
  config = _.extend {}, webpackConfig

  # Start a webpack-dev-server.
  new WebpackDevServer(webpack(config),
