From 6b51bdaaefdf0c298de995c9800bc5ef1dbd6668 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Wed, 31 Oct 2018 19:06:59 +0100 Subject: [PATCH] [BUGFIX] XML HTML confusion --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f415845..9d447a2 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ HtmlWebpackAlterDataPlugin.prototype.apply = function (compiler) { if ('chunkFilenameReplacement' in this.options) { var html = cheerio.load(data.html, { - xmlMode: true, + recognizeSelfClosing: true, }) this.options.chunkFilenameReplacement.forEach(function(replacement) { var tags = html(replacement.tag)