From ab5043054c55fcd2c87fb38928f9593909fb8a9f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 6 Jun 2021 19:39:06 +0200 Subject: [PATCH] fix(pwa): Replace closeTag parameter with voidTag for HtmlWebpackPlugin HtmlWebpackPlugin has a voidTag parameter that needs to be set to true so that both and 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 --- packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js b/packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js index b8ef7ef418..e1597d2cc7 100644 --- a/packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js +++ b/packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js @@ -225,10 +225,10 @@ module.exports = class HtmlPwaPlugin { } } -function makeTag (tagName, attributes, closeTag = false) { +function makeTag (tagName, attributes, voidTag = true) { return { tagName, - closeTag, + voidTag, attributes } }