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
Copy file name to clipboardExpand all lines: docs/presets/web-fonts.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,3 +253,57 @@ This will download the fonts assets to `public/assets/fonts` and serve them from
253
253
This feature is Node.js specific and will not work in the browser.
254
254
255
255
:::
256
+
257
+
## Emit Fonts to Build Output
258
+
259
+
In CI environments or during the first build, fonts downloaded to the `public` directory might not be copied to `dist` before the build finishes. To ensure fonts are always included in the production build, use the `onDownload` callback with a custom Vite plugin.
0 commit comments