You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it is not really maintainable. You can’t open font/image file in system viewer. You can’t replace font just by replacing the file.
Vite can’t inline font by it own. We should keep fonts/images as a regular files and inline them by built tools.
Also, inline is a little bad practice. Font files are big. And base64 decoding and CSS parser is not free. Maybe we should move to separated file and preload tag in HTML.
The text was updated successfully, but these errors were encountered:
Right now we manually put font in
data:uri
format https://github.com/mikhin/vite-figma/blob/main/src/ui/style.css#L15But it is not really maintainable. You can’t open font/image file in system viewer. You can’t replace font just by replacing the file.
Vite can’t inline font by it own. We should keep fonts/images as a regular files and inline them by built tools.
Also, inline is a little bad practice. Font files are big. And base64 decoding and CSS parser is not free. Maybe we should move to separated file and
preload
tag in HTML.The text was updated successfully, but these errors were encountered: