Vite 插件如何和 fontsource 字体包结合使用? #129
Answered
by
KonghaYao
Jisu-Woniu
asked this question in
Q&A
-
在项目里面用了类似 |
Beta Was this translation helpful? Give feedback.
Answered by
KonghaYao
Jan 5, 2025
Replies: 1 comment 2 replies
-
@Jisu-Woniu fontsource 本身是 google fonts 的字体版本,它的 npm 包是经过 Google 切片优化的,不需要 vite-plugin-font 去做一个优化 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jisu-Woniu 对的,你需要去找到原始的文件,fontsource 那边是有下载的。 https://fontsource.org/fonts/noto-sans-sc