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)