jantimon/html-webpack-plugin

how to distinguish htmlwebpackplugin instances in beforeEmit hook

Gong-Elory opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
there are many custom plugin instances which rely on beforeEmit hook,i don know which htmlwebpackplugin instance triggered the hook.
eg.

new HTMLWebpaclPluginA({
// config is invisible for me
}),
new HTMLWebpaclPluginB({
// config is invisible for me
}),
new MyCustonPluginA({}),
new MyCustonPluginB({}),

in MyCustonPluginA,i dont know which HTMLWebpaclPlugin (A or B ) triggered the beforeEmit hook

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sorry, we migrated away from the beforeEmit hook, because it was deprecated and should not be used for assets emitting, feel free to feedback