You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/api/compilation-hooks.mdx
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -650,3 +650,21 @@ Executed after setting up a child compiler.
650
650
### normalModuleLoader
651
651
652
652
Since webpack v5 `normalModuleLoader` hook was removed. Now to access the loader use `NormalModule.getCompilationHooks(compilation).loader` instead.
653
+
654
+
### statsPreset
655
+
656
+
`HookMap`
657
+
658
+
This HookMap is like a list of actions that gets triggered when a preset is used. It takes in an options object. When a plugin manages a preset, it should change settings in this object carefully without replacing existing ones.
0 commit comments