We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e930b commit 5c49a4cCopy full SHA for 5c49a4c
index.js
@@ -14,8 +14,8 @@ HtmlWebpackUncssPlugin.prototype.apply = (compiler) => {
14
(data, callback) => {
15
const $ = cheerio.load(data.html);
16
const styles = [];
17
- $('style').each(function() {
18
- const style = $(this).html();
+ $('style').map((i, el) => {
+ const style = $(el).html();
19
if (style) {
20
styles.push(style);
21
}
0 commit comments