|
|
@@ -226,12 +226,12 @@ this.fontsMinifier = this.fontsMinifier || (() => {
|
|
|
});
|
|
|
const fontTest = (fontSource, format) => fontSource.src != EMPTY_URL_SOURCE && fontSource.format == format;
|
|
|
let woffFontFound = fontSources.find(fontSource => fontTest(fontSource, "woff2-variations"));
|
|
|
- if (!woffFontFound) {
|
|
|
- woffFontFound = fontSources.find(fontSource => fontTest(fontSource, "woff"));
|
|
|
- }
|
|
|
if (!woffFontFound) {
|
|
|
woffFontFound = fontSources.find(fontSource => fontTest(fontSource, "woff2"));
|
|
|
}
|
|
|
+ if (!woffFontFound) {
|
|
|
+ woffFontFound = fontSources.find(fontSource => fontTest(fontSource, "woff"));
|
|
|
+ }
|
|
|
stats.fonts.processed += fontSources.length;
|
|
|
stats.fonts.discarded += fontSources.length;
|
|
|
if (woffFontFound) {
|