unplugin-fonts fails to inject into <head> #2032
Unanswered
Maytha8
asked this question in
Help & Questions
Replies: 1 comment 3 replies
-
Can you elaborate on that? Possibly related: #224. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm trying to use
unplugin-fonts
with Vike, configured to use Google Fonts as its source, so it can inject the<link>
tags pointing to Google Fonts into<head>
, but it fails to do that. It works when using local (custom) fonts because it can update it's "unfonts.css" stylesheet. A stripped down reproduction can be found https://github.com/Maytha8/vike-fonts-repro.Expected output:
![image](https://private-user-images.githubusercontent.com/44939173/396871918-21ae8c04-b9a5-4ac1-81e1-d4cab8b9033a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTMxNDksIm5iZiI6MTczODk5Mjg0OSwicGF0aCI6Ii80NDkzOTE3My8zOTY4NzE5MTgtMjFhZThjMDQtYjlhNS00YWMxLTgxZTEtZDRjYWI4YjkwMzNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1MzQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4NzVmNTE1ZjQ3OTU3ZWM4ZmU5YjdjNWE0ZTBkZjVlN2NiY2E1NmIwMWI4NmVhNGQ5ODZlYTBiMTRiNDFkZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iZUYP6_SuAlJ1pjzMJllZEa69_jfX3qkL0nJ7BcKPDQ)
Actual output:
![image](https://private-user-images.githubusercontent.com/44939173/396870639-51a388ff-1ae3-4637-8802-b96c45f74f67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTMxNDksIm5iZiI6MTczODk5Mjg0OSwicGF0aCI6Ii80NDkzOTE3My8zOTY4NzA2MzktNTFhMzg4ZmYtMWFlMy00NjM3LTg4MDItYjk2YzQ1Zjc0ZjY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA1MzQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExMzRiMTdiMTg3Yjc5MDg3OWNlMzcxNWUyNGIwZDVkODlhNzVhZGNmMmZlZGRjNjEwNTE5ZWY0M2ZlMGZlMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.174LBrjwkiv4MP77-HYtrCgDALMsNeQaotYIzAOFlM4)
Is there some sort of configuration option with either Vike or perhaps the plugin that can work around this, or is this a deeper problem? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions