-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks #7673
Conversation
For maintainers only:
|
b7de681
to
8e456f5
Compare
@sokra @ooflorent I really like that approach and will also use it for the html-webpack-plugin. Imho we should prefix get functions e.g.:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jantimon renaming sounds good to me
lib/web/JsonpMainTemplatePlugin.js
Outdated
class JsonpMainTemplatePlugin { | ||
static hooks(mainTemplate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hooks
-> getHooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. I’ll do it in the other PR also
Should we add a |
@ooflorent Thanks for your update. I labeled the Pull Request so reviewers will review it again. @sokra Please review the new changes. |
1247090
to
c9bd29c
Compare
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
Thanks |
Refactor
JsonpMainTemplatePlugin
plugin to change how hooks are installed intoMainTemplate
.cc @jantimon
What kind of change does this PR introduce?
refactoring
Did you add tests for your changes?
no
Does this PR introduce a breaking change?
yes
What needs to be documented once your changes are merged?
Maybe
JsonpMainTemplatePlugin.hooks
.