jantimon / jantimon/html-webpack-plugin
Reconsider lang attribute
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.3k
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
Lighthouse audits recommend adding a lang attribute to your HTML. With the goal of being minimal / zero config, it would be nice to set that attribute without writing a custom template or plugin.
**Describe the solution you'd like**
A solution similar to #562
**Describe alternatives you've considered**
Writing a custom template or plugin for it. The suggested solution of HTML Webpack Template has not been update in years and seems to have issues with Webpack 4?
**Additional context**
I can see requesting arbitrary extensions could lead to feature bloat. I do think it's reasonable to use Lighthouse recommendations as the boundary to prevent feature bloat.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the issue's reference to #562 and reviewing how html-webpack-plugin handles configuration and generated HTML. Consider how a lang attribute could be configured without a custom template or plugin, while avoiding arbitrary extension points. Done means a documented, tested way to set the attribute that works with the current webpack 4-compatible setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100