lib/webpack.js
function getServer(inPath, { react, port, contentBase, configureApplication }) {
  const server = new _webpackDevServer2.default((0, _webpack2.default)(_extends({}, getConfig(react), {
    devtool: 'eval-source-map',
    entry: [`webpack-dev-server/client?http://0.0.0.0:${port}`, 'webpack/hot/only-dev-server', 'babel-polyfill', inPath],
    output: { path: contentBase, filename: 'script.js', publicPath: '/' },
    plugins: serverPlugins
  })), { contentBase: false, publicPath: '/', hot: true });

  server.use((0, _serveStatic2.default)(contentBase));
  configureApplication(server.app);

  return server;
}
function getServer(inPath, { react, port, contentBase, configureApplication }) {
  const server = new _webpackDevServer2.default((0, _webpack2.default)(_extends({}, getConfig(react), {
    devtool: 'eval-source-map',
    entry: [`webpack-dev-server/client?http://0.0.0.0:${port}`, 'webpack/hot/only-dev-server', 'babel-polyfill', inPath],
    output: { path: contentBase, filename: 'script.js', publicPath: '/' },
    plugins: serverPlugins
  })), { contentBase: false, publicPath: '/', hot: true });

  server.use((0, _serveStatic2.default)(contentBase));
  configureApplication(server.app);

  return server;
}
function getServer ( inPath , { react , port , contentBase , configureApplication } ) { const server = new _webpackDevServer2 . default ( ( 0 , _webpack2 . default ) ( _extends ( { } , getConfig ( react ) , { devtool : 'eval-source-map' , entry : [ ` ${ port } ` , 'webpack/hot/only-dev-server' , 'babel-polyfill' , inPath ] , output : { path : contentBase , filename : 'script.js' , publicPath : '/' } , plugins : serverPlugins } ) ) , { contentBase : false , publicPath : '/' , hot : true } ) ; server . use ( ( 0 , _serveStatic2 . default ) ( contentBase ) ) ; configureApplication ( server . app ) ; return server ; }
Returns a webpack development server instance.

@memberof module:webpack
@private
@method getServer
@param {string}          inPath  - the path to an input file
@param {DevServerConfig} options - a config object
@return {Object} an instance of the webpack development server
Returns a webpack development server instance .