Skip to content

Conversation

tcitworld
Copy link
Contributor

HtmlWebpackPlugin has a voidTag parameter that needs to be set to true
so that both <link> and <meta> are treated as void elements (with no
contents). The closeTag parameter doesn't exist anymore since HtmlWebpackPlugin 4.

https://github.com/jantimon/html-webpack-plugin/blob/570f735c237d4a03a65622cfe64652431aca4132/typings.d.ts#L280
https://html.spec.whatwg.org/multipage/syntax.html#void-elements

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

HtmlWebpackPlugin has a voidTag parameter that needs to be set to true
so that both <link> and <meta> are treated as void elements (with no
contents). The closeTag parameter doesn't exist.

https://github.com/jantimon/html-webpack-plugin/blob/570f735c237d4a03a65622cfe64652431aca4132/typings.d.ts#L280
https://html.spec.whatwg.org/multipage/syntax.html#void-elements

Signed-off-by: Thomas Citharel <[email protected]>
Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@haoqunjiang haoqunjiang merged commit da2c715 into vuejs:dev Jun 9, 2021
@tcitworld tcitworld deleted the fix-pwa-tag-injection branch June 9, 2021 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants