-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
needs-decisionNot sure if we want to do this yet, also design work neededNot sure if we want to do this yet, also design work needed
Description
Describe the problem
According to #4963, @Rich-Harris said we don't preload fonts by default because they may be imported but not used on a page. Though I'm not sure that's a great reason for us to not do it by default as that seems like the user has coded things incorrectly in that case
Describe the proposed solution
Maybe Vite could issue a warning for fonts that are imported, but never used if we really care about detecting that
Alternatives considered
No response
Importance
nice to have
Additional Information
Font preloading sometimes doesn't work before Vite 5. Fixed in vitejs/vite#14297
teemingc, Creative-Difficulty, Devr-pro, SleepingRobot and alexander-albul
Metadata
Metadata
Assignees
Labels
needs-decisionNot sure if we want to do this yet, also design work neededNot sure if we want to do this yet, also design work needed