jantimon / jantimon/resource-hints-webpack-plugin

not working in webpack 5 and htmlwebpackplugin 5.6.3

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
100
Forks
12
PR merge metrics
No merged PRs in 30d

Description

hooks is diffrent

it should be:
```
const alterAssetTags = HtmlWebpackPlugin.getHooks(compilation).alterAssetTags
if (alterAssetTags) {
alterAssetTags.tapAsync('ResourceHintWebpackPluginAlterAssetTags',
resourceHintWebpackPluginAlterAssetTags
);
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the plugin's current HtmlWebpackPlugin hook registration and compare it with the webpack 5 and html-webpack-plugin 5.6.3 hook API shown in the issue. Verify the change against a webpack 5 setup using html-webpack-plugin 5.6.3 and confirm that resource hints are still generated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.