Skip to content

API not up-to-date? #19

@rowild

Description

@rowild

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions