var webpack = require('webpack')
var webpackDevMiddleware = require('webpack-dev-middleware')
var webpackHotMiddleware = require('webpack-hot-middleware')
var config = require('./webpack.config')

var app = new (require('express'))()
var port = 3000

var compiler = webpack(config)
app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath }))
app.use(webpackHotMiddleware(compiler))

app.get("*", function(req, res) {
  res.sendFile(__dirname + '/index.html')
})

app.listen(port, function(error) {
  if (error) {
    console.error(error)
  } else {
    console.info("==> 🌎  Listening on port %s. Open up http://localhost:%s/ in your browser.", port, port)
  }
})

@@ -25,16 +25,17 @@
 ebpack')
+;
 %0Avar web
@@ -83,24 +83,25 @@
 middleware')
+;
 %0Avar webpack
@@ -149,16 +149,17 @@
 leware')
+;
 %0Avar con
@@ -191,16 +191,17 @@
 config')
+;
 %0A%0Avar ap
@@ -230,16 +230,17 @@
 ess'))()
+;
 %0Avar por
@@ -247,16 +247,17 @@
 t = 3000
+;
 %0A%0Avar co
@@ -280,16 +280,17 @@
 (config)
+;
 %0Aapp.use
@@ -377,16 +377,17 @@
 Path %7D))
+;
 %0Aapp.use
@@ -418,16 +418,17 @@
 mpiler))
+;
 %0A%0Aapp.ge
@@ -496,19 +496,21 @@
 x.html')
+;
 %0A%7D)
+;
 %0A%0Aapp.li
@@ -577,16 +577,17 @@
 r(error)
+;
 %0A  %7D els
@@ -700,12 +700,14 @@
 ort)
+;
 %0A  %7D%0A%7D)
+;
 %0A

fix jshint warning