diff --git a/middleware/hotMiddleware.js b/middleware/hotMiddleware.js index a5f96ba..54ad47c 100644 --- a/middleware/hotMiddleware.js +++ b/middleware/hotMiddleware.js @@ -1,6 +1,8 @@ import hotMiddleware from 'webpack-hot-middleware' import { PassThrough } from 'stream' +const noop = () => {} + export default (compiler, opts) => { const expressMiddleware = hotMiddleware(compiler, opts) return async (ctx, next) => { @@ -11,7 +13,8 @@ export default (compiler, opts) => { writeHead: (status, headers) => { ctx.status = status ctx.set(headers) - } + }, + end: noop }, next) } }