Skip to content

Commit

Permalink
docs(website): revise the description (#4199)
Browse files Browse the repository at this point in the history
  • Loading branch information
xbzhang2020 authored Dec 15, 2024
1 parent 148a14a commit e001f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/plugins/dev/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ api.processAssets(
- Removing an asset:

```js
api.processAssets({ stage: 'stage-optimize' }, ({ assets, compilation }) => {
api.processAssets({ stage: 'optimize' }, ({ assets, compilation }) => {
const assetName = 'unwanted-script.js';
if (assets[assetName]) {
compilation.deleteAsset(assetName);
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/plugins/dev/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ api.processAssets(
- 移除一个 asset:

```js
api.processAssets({ stage: 'stage-optimize' }, ({ assets, compilation }) => {
api.processAssets({ stage: 'optimize' }, ({ assets, compilation }) => {
const assetName = 'unwanted-script.js';
if (assets[assetName]) {
compilation.deleteAsset(assetName);
Expand Down

0 comments on commit e001f37

Please sign in to comment.