Fontfiles get base64 encoded into css #19322
Unanswered
PitchBlackCat
asked this question in
Q&A
Replies: 1 comment
-
This is likely a current lib mode limitation #3295. You might find some workaround there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are maintaining a library of scss/css files that include fonts by url, for example like this:
Vite converts all of the fonts to base64 and inlines them in the resulting css file.
However, the inlined fonts are multiple times larger in file size then the font binaries
This is very undesirable to us and we can't figure out a way to disable the inlining.
snippet of our vite.config.js:
Is there an option to stop vite from inlining the fonts into our css?
Beta Was this translation helpful? Give feedback.
All reactions