-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Astro Info
Astro v5.16.6
Vite v6.4.1
Node v24.12.0
System Windows (x64)
Package Manager npm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using the experimental Fonts API, in dev, using the "q+enter" combo to stop the dev server shows the following message (depending on the number of font weights in use; 2 in this example):
[assets] Copying fonts (4 files)...
Additionally, a "dist_astro\fonts" directory is created in the project folder which is populated by a woff and woff2 file for each font weight (2 font weights = 4 files as shown above).
Development mode should not be creating a "dist" folder, as I understand it. Using "ctrl+c" to stop the dev server does NOT show that message or create the files. Only "q+enter" does.
Thanks.
What's the expected result?
Using "q+enter" to stop the dev server should:
Not display a message.
Not create a "dist_astro\fonts" folder or copy font files to it.
Reproducible Example Notes:
- It appears Stackblitz cannot download fonts from Google Fonts. So it is not a 100% completely accurate test. If there is a way to configure Stackblitz to download fonts from Google Fonts, please let me know.
- The "dist" folder is created when typing "q+enter" in the Stackblitz terminal, but it contains no font files since no font files were able to be downloaded from Google Fonts.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.