Commit b2c1e64
authored
docs(compilation-hooks): document CssModulesPlugin.getCompilationHooks() and orderModules (#8248)
Webpack 5.107 adds a new orderModules hook on
CssModulesPlugin.getCompilationHooks(compilation). It is a SyncBailHook
called once per CSS source type (CSS_IMPORT_TYPE and CSS_TYPE) with the
chunk's modules pre-sorted by full module name, letting plugin authors
override the default import-order topological sort and side-step the
"Conflicting order between css ..." warning.
Adds a new section at the end of compilation-hooks.mdx documenting both
the CssModulesPlugin.getCompilationHooks() entry point and the
orderModules hook itself, following the pattern already used in the
file for NormalModule.getCompilationHooks().loader.
Refs: webpack/webpack#209781 parent 9ef6664 commit b2c1e64
1 file changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
0 commit comments