'use strict'

const webpack = require('webpack')
const webpackDevServer = require('webpack-dev-server')
const config = require('./webpack.config')

new webpackDevServer(webpack(config), {
    publicPath: config.output.publicPath,
    hot: true,
    historyApiFallback: true,
    stats: { colors: true }
}).listen(3000, (err) => {
    if (err) {
        return console.log(err)
    }

    console.log('listening on http://localhost:3000')
})
'use strict'

const webpack = require('webpack')
const webpackDevServer = require('webpack-dev-server')
const config = require('./webpack.config')

new webpackDevServer(webpack(config), {
    publicPath: config.output.publicPath,
    hot: true,
    inline: true,
    historyApiFallback: true,
    stats: { colors: true }
}).listen(3000, (err) => {
    if (err) {
        return console.log(err)
    }

    console.log('listening on http://localhost:3000')
})
Add inline parameter for the config hot module reload.
Add inline parameter for the config hot module reload.
