var webpack = require("webpack");
var webpackDevServer = require('webpack-dev-server');
var path = require('path');
var baseConfig = require('../config/webpack.config.dist');

var port = 8080;
var serverURI = `webpack-dev-server/client?http://localhost:${port}/`;

var browser = baseConfig();
browser.output.libraryTarget = "var";
browser.output.filename = "./dist/seng-boilerplate.js";
browser.output.path = path.join(__dirname, '../dist');
browser.entry = [serverURI, browser.entry];

browser.devtool = 'source-map';
browser.watch = true;
browser.progress = true;
browser.keepalive = true;

var compiler = webpack(browser);
var server = new webpackDevServer(compiler, {
	contentBase: "example/"
});

server.listen(port, function(err) {
	if (err) {
		console.log(err);
		return
	}
	console.log(`Listening at http://localhost:${port}\n`);
});

@@ -689,16 +689,62 @@
 xample/%22
+,%0A%09stats: %7B%0A%09%09colors: true,%0A%09%09chunks: false%0A%09%7D
 %0A%7D);%0A%0Ase

Disable chunks in webpack-dev-server stats to minimize noise