You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the hooks api of htmlWebpackPlugin changed.
Currently, this plugin throws an error: Error: The expected HtmlWebpackPlugin hook was not found! Ensure HtmlWebpackPlugin is installed and was initialized before this plugin.
This is the case, because the plugin checks against if (!compilation.hooks.htmlWebpackPluginAlterAssetTags) {
checking the hooks that htmlWebpackPlugin provides: https://github.com/jantimon/html-webpack-plugin#events
such a hook is not offered and therefore not available.
However, changing to what seems to be the closest candidate: alterAssetTagGroups also dow not work.
It seems there is a drop-in-replacement for this plugin, https://github.com/swimmadude66/html-webpack-skip-assets-plugin, but it would be great anyway, if there was a chance to update this plugin or mark it as deprecated with a note up to which version of htmlWebpackPlugin this was working.
Thank you!
The text was updated successfully, but these errors were encountered:
It seems that the hooks api of htmlWebpackPlugin changed.
Currently, this plugin throws an error:
Error: The expected HtmlWebpackPlugin hook was not found! Ensure HtmlWebpackPlugin is installed and was initialized before this plugin.
This is the case, because the plugin checks against
if (!compilation.hooks.htmlWebpackPluginAlterAssetTags) {
checking the
hooks
that htmlWebpackPlugin provides:https://github.com/jantimon/html-webpack-plugin#events
such a hook is not offered and therefore not available.
However, changing to what seems to be the closest candidate:
alterAssetTagGroups
also dow not work.It seems there is a drop-in-replacement for this plugin,
https://github.com/swimmadude66/html-webpack-skip-assets-plugin
, but it would be great anyway, if there was a chance to update this plugin or mark it as deprecated with a note up to which version of htmlWebpackPlugin this was working.Thank you!
The text was updated successfully, but these errors were encountered: