|
|
@@ -294,7 +294,6 @@ this.fontsMinifier = this.fontsMinifier || (() => {
|
|
|
const fontFamily = removeQuotes(rule.style.getPropertyValue("font-family"));
|
|
|
if (fontFamily && !unusedFonts.includes(fontFamily)) {
|
|
|
let optionalTest;
|
|
|
-
|
|
|
const optionalUsedFonts = filteredUsedFonts && filteredUsedFonts.get(fontFamily);
|
|
|
if (optionalUsedFonts && optionalUsedFonts.length) {
|
|
|
const fontStyle = rule.style.getPropertyValue("font-style") || "normal";
|
|
|
@@ -306,7 +305,6 @@ this.fontsMinifier = this.fontsMinifier || (() => {
|
|
|
} else {
|
|
|
optionalTest = true;
|
|
|
}
|
|
|
-
|
|
|
if (testUnicodeRange(docContent, rule.style.getPropertyValue("unicode-range")) && optionalTest) {
|
|
|
stylesheetContent += rule.cssText;
|
|
|
}
|