runtime-webpack-plugin

0.1.0 • Public • Published

runtime-webpack-plugin

Put the webpack runtime into its own chunk.

Using the CommonsChunkPlugin results in the common chunk having the webpack runtime in it; sometimes this is not desirable. Isolating the webpack runtime also means you can leverage CDN caching since the runtime bundle changes every time the hash changes.

module.exports = {
  // ...
  plugins: [
    new optimize.CommonsChunkPlugin(),
    new RuntimePlugin('initial')
  ]
};

/runtime-webpack-plugin/

    Package Sidebar

    Install

    npm i runtime-webpack-plugin

    Weekly Downloads

    42

    Version

    0.1.0

    License

    CC0-1.0

    Last publish

    Collaborators

    • metalab-user