Browse Source

fixed fonts removal

Gildas 7 years ago
parent
commit
7334a5cdef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/single-file/rules-minifier.js

+ 1 - 1
lib/single-file/rules-minifier.js

@@ -108,7 +108,7 @@ this.rulesMinifier = this.rulesMinifier || (() => {
 					stylesheetContent += rule.cssText;
 				} else if (rule.type == CSSRule.FONT_FACE_RULE && rule.style && rule.style.fontFamily && !unusedFonts.includes(rule.style.fontFamily.trim())) {
 					stylesheetContent += rule.cssText;
-				} else {
+				} else if (rule.type != CSSRule.FONT_FACE_RULE) {
 					stylesheetContent += rule.cssText;
 				}
 			});