Skip to content

Commit 3800960

Browse files
committed
fix multiple style tags
1 parent ccdf9f4 commit 3800960

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Uncss extension for the HTML Webpack Plugin
22

3-
Removes unused styles from **embedded CSS only**.
3+
Removes unused styles from **embedded CSS** only.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ HtmlWebpackUncssPlugin.prototype.apply = (compiler) => {
2323
if (error) {
2424
return callback(error);
2525
}
26+
$('style').slice(1).remove();
2627
$('style').text(output);
2728
htmlPluginData.html = $.html();
2829
return callback(null, htmlPluginData);

0 commit comments

Comments
 (0)