Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document webpack change: feat: allow to customize the stage of BannerPlugin #7183

Closed
webpack-bot opened this issue Mar 15, 2024 · 0 comments · Fixed by #7196
Closed

Document webpack change: feat: allow to customize the stage of BannerPlugin #7183

webpack-bot opened this issue Mar 15, 2024 · 0 comments · Fixed by #7196
Assignees

Comments

@webpack-bot
Copy link

A pull request by @alexander-akait was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#18204


What kind of change does this PR introduce?

feat, fixes webpack-contrib/css-minimizer-webpack-plugin#64

Did you add tests for your changes?

WIP

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

Yes, need to document the stage option

usage:

new webpack.BannerPlugin({
  raw: true,
  banner: "/* banner is a string */",
  stage: webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT
})

It will add the banner message after minimizers and any assets manipulation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants