Skip to content

Commit 5c49a4c

Browse files
committed
arrow functions, arrow functions everywhere
1 parent 95e930b commit 5c49a4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ HtmlWebpackUncssPlugin.prototype.apply = (compiler) => {
1414
(data, callback) => {
1515
const $ = cheerio.load(data.html);
1616
const styles = [];
17-
$('style').each(function() {
18-
const style = $(this).html();
17+
$('style').map((i, el) => {
18+
const style = $(el).html();
1919
if (style) {
2020
styles.push(style);
2121
}

0 commit comments

Comments
 (0)