|
@@ -67,7 +67,7 @@ this.singlefile.lib.modules.fontsMinifier = this.singlefile.lib.modules.fontsMin
|
|
|
});
|
|
});
|
|
|
workStyleElement.remove();
|
|
workStyleElement.remove();
|
|
|
docContent += doc.body.innerText;
|
|
docContent += doc.body.innerText;
|
|
|
- if (getComputedStyle) {
|
|
|
|
|
|
|
+ if (getComputedStyle && options.doc) {
|
|
|
fontsInfo.used = fontsInfo.used.map(fontNames => fontNames.map(familyName => {
|
|
fontsInfo.used = fontsInfo.used.map(fontNames => fontNames.map(familyName => {
|
|
|
const matchedVar = familyName.match(/^var\((--.*)\)$/);
|
|
const matchedVar = familyName.match(/^var\((--.*)\)$/);
|
|
|
if (matchedVar && matchedVar[1]) {
|
|
if (matchedVar && matchedVar[1]) {
|