var format = require('util').format;
var path = require('path');
var WebpackDevServer = require('webpack-dev-server');
var webpack = require('webpack');
var config = require('./webpack.config');

var argv = require('yargs')
  .boolean('h').alias('h', 'hot')
  .argv;

var contentBase;
if (process.env.SOURCE_IP && process.env.SOURCE_PORT) {
  contentBase = {
    target: format(
      'http://%s:%d/',
      process.env.SOURCE_IP || '192.168.59.103',
      process.env.SOURCE_PORT || 8000
    )
  };
} else {
  contentBase = path.join(__dirname, 'public');
}

var port = process.env.PORT || 3000;
var host = process.env.IP || '0.0.0.0';

var server = new WebpackDevServer(webpack(config), {
  publicPath: config.output.publicPath,
  hot: argv.h,
  contentBase: contentBase
});

server.listen(port, host, function(err) {
  if (err) {
    console.log(err);
  }
});

@@ -426,28 +426,8 @@
 E_IP
- %7C%7C '192.168.59.103'
 ,%0A  
@@ -457,16 +457,8 @@
 PORT
- %7C%7C 8000
 %0A   

Remove never used defaults