webpack.js.org
                                
                                 webpack.js.org copied to clipboard
                                
                                    webpack.js.org copied to clipboard
                            
                            
                            
                        Document webpack change: refactor chunk id plugins
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
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