function devMiddleware (app, isDevMode) {
  if (isDevMode) {
    const compiler = webpack(webpackConfig)

    return app.use(webpackDev(compiler, {
      noInfo: true, publicPath: webpackConfig.output.publicPath
    }), webpackHot(compiler))
  }
}
/**
 * Webpack Dev Middleware
 *
 * @export
 * @param {Object} app express app
 * @param {Boolean} isDevMode app in development
 * @returns {Function} function webpack dev middleware
 */
Webpack Dev Middleware
@export
@param {Object} app express app
@param {Boolean} isDevMode app in development
@returns {Function} function webpack dev middleware
Webpack Dev Middleware @export @param { Object } app express app @param { Boolean } isDevMode app in development @returns { Function } function webpack dev middleware
function devMiddleware (app, isDevMode) {
  if (isDevMode) {
    const compiler = webpack(webpackConfig)
    return app.use(webpackDev(compiler, {
      noInfo: true, publicPath: webpackConfig.output.publicPath
    }), webpackHot(compiler))
  }
}
function devMiddleware ( app , isDevMode ) { if ( isDevMode ) { const compiler = webpack ( webpackConfig ) return app . use ( webpackDev ( compiler , { noInfo : true , publicPath : webpackConfig . output . publicPath } ) , webpackHot ( compiler ) ) } }
Webpack Dev Middleware
 @export
 @param {Object} app express app
 @param {Boolean} isDevMode app in development
 @returns {Function} function webpack dev middleware
Webpack Dev Middleware @export @param { Object } app express app @param { Boolean } isDevMode app in development @returns { Function } function webpack dev middleware