#! /usr/bin/env node
'use strict';
require('shelljs/global');

const path = require('path');
const dirs = require('../config/dirs');
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');

const clientConfig = require(path.join(dirs.webpack, 'webpack.config.client.dev.js'));

function webpackServerReady() {
  console.log(`\nWebpack Dev Server listening on port ${clientConfig.devServer.port}`); // eslint-disable-line

  const app = require('../source/server/app.js').default;

  app.run();
}

function compileClient() {
  const clientCompiler = webpack(clientConfig);

  const clientDevServer = new WebpackDevServer(
    clientCompiler,
    clientConfig.devServer
  );

  clientDevServer.listen(
    clientConfig.devServer.port,
    clientConfig.devServer.host,
    webpackServerReady
  );
}

compileClient();

@@ -311,226 +311,8 @@
 );%0A%0A
-function webpackServerReady() %7B%0A  console.log(%60%5CnWebpack Dev Server listening on port $%7BclientConfig.devServer.port%7D%60); // eslint-disable-line%0A%0A  const app = require('../source/server/app.js').default;%0A%0A  app.run();%0A%7D%0A
 %0Afun
@@ -579,32 +579,8 @@
 host
-,%0A    webpackServerReady
 %0A  )

Update dev.js