Usage

Webpack Plugin

First we need to import the package into our component;

const ReactLoadableSSRAddon = require('react-loadable-ssr-addon');

module.exports = {
  entry: {
    // ...
  },
  output: {
    // ...
  },
  module: {
    // ...
  },
  plugins: [
    new ReactLoadableSSRAddon({
      filename: 'assets-manifest.json',
    }),
  ],
};

HTTP Server

See how easy to implement it is?

Last updated

Was this helpful?