THIS MIDDLEWARE SHOULD ONLY USED FOR DEVELOPMENT!
DO NOT USE IT IN PRODUCTION!
This project is like webpack-dev-middleware
but for server-side bundling.
import webpackSeverRenderMiddleware from 'webpack-server-render-middleware'
app.use(webpackSeverRenderMiddleware(...))
app.use((req, res) => {
const serverBundle = res.serverBundle
// than use your bundle here to render pages
})