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 ccdf9f4 commit 3800960Copy full SHA for 3800960
README.md
@@ -1,3 +1,3 @@
1
# Uncss extension for the HTML Webpack Plugin
2
3
-Removes unused styles from **embedded CSS only**.
+Removes unused styles from **embedded CSS** only.
index.js
@@ -23,6 +23,7 @@ HtmlWebpackUncssPlugin.prototype.apply = (compiler) => {
23
if (error) {
24
return callback(error);
25
}
26
+ $('style').slice(1).remove();
27
$('style').text(output);
28
htmlPluginData.html = $.html();
29
return callback(null, htmlPluginData);
0 commit comments