Skip to content

Document webpack change: change assetEmitted hook to include more info #3278

@webpack-bot

Description

@webpack-bot

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#9677


What kind of change does this PR introduce?
change

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
yes

What needs to be documented once your changes are merged?
The assetEmitted hook has different arguments now. The second argument is an object containing multiple information now { content: Buffer, source: Source, compilation: Compilation, outputPath: string, targetPath: string }

cc @evilebottnawi

Metadata

Metadata

Assignees

No one assigned

    Labels

    webpack5Docs for webpack 5

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions