jantimon / jantimon/resource-hints-webpack-plugin
not working in webpack 5 and htmlwebpackplugin 5.6.3
- 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