[BUGFIX] XML HTML confusion

This commit is contained in:
Philipp Dieter 2018-10-31 19:06:59 +01:00
parent 40d0cd19d1
commit 6b51bdaaef

View File

@ -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)