From b9984b40ec2ca5abe6e905fa8da560904632c3c0 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Thu, 22 Nov 2018 02:12:26 +0100 Subject: [PATCH] [FEATURE] Umnask comment marker --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index bcbb4ce..a410893 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,7 @@ HtmlWebpackAlterDataPlugin.prototype.apply = function (compiler) { compilation.hooks.htmlWebpackPluginAfterHtmlProcessing.tapAsync('HtmlWebpackAlterDataPlugin', (data, cb) => { if ('chunkFilenameReplacement' in this.options) { + console.log(data.html) var co = cheerio.load(data.html, { recognizeSelfClosing: false, lowerCaseTags: false, @@ -82,6 +83,8 @@ HtmlWebpackAlterDataPlugin.prototype.apply = function (compiler) { data.html = co.html() } data.html = data.html.replace('', '') + data.html = data.html.replace(//g, '') cb(null, data) })