Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Don't strip `:hover`, `:focus` or `:active` rules.
Jason Miller34c47242a922
diff --git a/config/html-webpack-inline-critical-css-plugin.js b/config/html-webpack-inline-critical-css-plugin.jsindex 1240d158..39270652 100644--- a/config/html-webpack-inline-critical-css-plugin.js+++ b/config/html-webpack-inline-critical-css-plugin.js@@ -153,7 +153,7 @@ module.exports = class HtmlWebpackInlineCriticalCssPlugin {visit(ast, function (rule) {if (rule.type==='rule') {rule.selectors = rule.selectors.filter(function (sel) {- if (sel.match(/:(hover|focus|active)([.[#~&^:*]|\s|\n|$)/)) return false;+ // Remove unknown pseudos as they break nwmatchersel = sel.replace(/::?(?:[a-z-]+)([.[#~&^:*]|\s|\n|$)/gi, '$1');return document.querySelector(sel, document) != null;});