MCPcopy
hub / github.com/wdjungst/react-project / runDevServer

Function runDevServer

modules/start.js:82–90  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

80}
81
82function runDevServer(cb) {
83 const { ClientConfig } = getAppWebpackConfig()
84 const compiler = webpack(ClientConfig)
85 const server = new WebpackDevServer(compiler, ClientConfig.devServer)
86 server.listen(DEV_PORT, DEV_HOST, () => {
87 log('Webpack dev server listening on port', DEV_PORT)
88 cb()
89 })
90}
91

Callers 1

startFunction · 0.85

Calls 2

logFunction · 0.90
getAppWebpackConfigFunction · 0.70

Tested by

no test coverage detected