webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Document webpack change: refactor chunk id plugins

Open webpack-bot opened this issue 7 years ago • 1 comments

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: https://github.com/webpack/webpack/pull/7995


  • fixed sorting of assets in stats
  • NamedChunkIdsPlugin can now generate ids from requests
  • fixed a bug with 0 and compareSelect

What kind of change does this PR introduce? refactoring

Did you add tests for your changes? existing test

Does this PR introduce a breaking change? yes, some plugin names changed

What needs to be documented once your changes are merged?

  • webpack.NamedChunksPlugin -> webpack.ids.NamedChunkIdsPlugin
  • webpack.optimize.OccurrenceChunkOrderPlugin -> webpack.ids.OccurrenceChunkIdsPlugin
  • Compilation.hooks.optimizeChunkOrder removed
  • Compilation.hooks.chunkIds added

webpack-bot avatar Sep 06 '18 12:09 webpack-bot

Do we need to document this change webpack.NamedChunksPlugin -> webpack.ids.NamedChunkIdsPlugin Looks like in v5 we recommend using optimization.chunkIds: 'named' instead of NamedChunksPlugin

Lalitha-Iyer avatar Oct 08 '20 23:10 Lalitha-Iyer