Skip to content

Commit 84d21b8

Browse files
authored
docs: add notice for deprecated compilation hooks (webpack#7075)
1 parent e1d9b7a commit 84d21b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/api/compilation-hooks.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ Executed before creating the chunks assets.
372372

373373
`AsyncSeriesHook`
374374

375+
W> `additionalAssets` is deprecated (use the [Compilation.hook.processAssets](#processassets) hook instead and use one of the Compilation.PROCESS_ASSETS_STAGE\_\* as a stage option)
376+
375377
Create additional assets for the compilation. This hook can be used to download
376378
an image, for example:
377379

@@ -451,6 +453,8 @@ compilation.hooks.afterOptimizeChunkAssets.tap('MyPlugin', (chunks) => {
451453

452454
`AsyncSeriesHook`
453455

456+
W> `optimizeAssets` is deprecated (use the [Compilation.hook.processAssets](#processassets) hook instead)
457+
454458
Optimize all assets stored in `compilation.assets`.
455459

456460
- Callback Parameters: `assets`
@@ -459,6 +463,8 @@ Optimize all assets stored in `compilation.assets`.
459463

460464
`SyncHook`
461465

466+
W> `afterOptimizeAssets` is deprecated (use the [Compilation.hook.afterProcessAssets](#afterprocessassets) hook instead)
467+
462468
The assets have been optimized.
463469

464470
- Callback Parameters: `assets`

0 commit comments

Comments
 (0)