webpack-server-render-middleware

    1.0.0 • Public • Published

    webpack-server-render-middleware

    npm Travis Codecov

    THIS MIDDLEWARE SHOULD ONLY USED FOR DEVELOPMENT!

    DO NOT USE IT IN PRODUCTION!

    What is this?

    This project is like webpack-dev-middleware but for server-side bundling.

    Usage

    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
    })

    Install

    npm i webpack-server-render-middleware

    DownloadsWeekly Downloads

    80

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    207 kB

    Total Files

    12

    Last publish

    Collaborators

    • wuct