-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Vite custom font scanning all available font files including node_modules #74
Comments
Are the following code repeated? Lines 92 to 102 in a7e66d5
Lines 126 to 136 in a7e66d5
|
I'm hitting this as well, and this results in console warnings in my app, due to adding preload directives for fonts that are only used in async chunks that are not loaded with the app. This happens because the current code generates preload directives for all fonts in the bundle rather than only fonts included via |
Describe the feature
Since there are some font files (e.g. icon font) already handled by other plugin,
unplugin-fonts
is no need to inject those files. It just need to inject the configurated fonts instead of inject every available font files inside the build.It is suggested that adding an option to disable control custom font.
Update - it is a bug
Vite custom font scanning all available font files including node_modules file on build
The text was updated successfully, but these errors were encountered: