Webpack koa middleware with HMR support