|
@@ -186,9 +186,9 @@ this.fontsMinifier = this.fontsMinifier || (() => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const font = declarations.children.filter(node => node.property == "font").tail;
|
|
const font = declarations.children.filter(node => node.property == "font").tail;
|
|
|
- if (font) {
|
|
|
|
|
|
|
+ if (font && font.data && font.data.value) {
|
|
|
try {
|
|
try {
|
|
|
- const parsedFont = fontPropertyParser.parse(cssTree.generate(font.data));
|
|
|
|
|
|
|
+ const parsedFont = fontPropertyParser.parse(cssTree.generate(font.data.value));
|
|
|
parsedFont.family.forEach(familyName => fontFamilyNames.push(getFontFamily(familyName)));
|
|
parsedFont.family.forEach(familyName => fontFamilyNames.push(getFontFamily(familyName)));
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
// ignored
|
|
// ignored
|