const express = require('express')
const webpack = require('webpack')
const webpackDevMiddleware = require('webpack-dev-middleware')
const webpackHotMiddleware = require('webpack-hot-middleware')

const app = express()
const config = require('./config/webpack.config.js')
const compiler = webpack(config)

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

app.use(webpackHotMiddleware(compiler))

app.listen(3002, function() {
  console.log('radio app listening on port 3002!\n')
})

@@ -255,20 +255,20 @@
 bpack.co
-nfig
+mmon
 .js')%0Aco
@@ -527,8 +527,109 @@
 %5Cn')%0A%7D)%0A
+%0A// %22clean%22: %22rm -rf ./lib/*%22,%0A// %22cp%22: %22cp -r ./src/imgs ./lib/.%22,%0A// %22prepare%22: %22babel src -d lib%22%0A

modify server