-
Notifications
You must be signed in to change notification settings - Fork 12k
Fonts are not resolved when using base href #30332
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
Comments
Root relative URLs (those starting with a |
And if I use those that begin with |
Ideally, the font should be placed in a location accessible to the referencing file at build time via a relative path. This allows the build system to automatically process the file. This has several benefits including long-term cache based file hashing and ensuring the file is included in the output at the correct location for the application. |
I have the fonts in a folder called |
For the first option where the build system processes the font file, you can put the font file next to the CSS file and then use For the later option where the file is put into the public assets, remove the leading
For this second option, the build system will not verify that the font is actually present in the output. |
Okay, it works with |
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I'm trying to deploy an Angular application to GitHub Pages using GitHub Actions. I've set the base href correctly, but the sources aren't showing up. The routes to get the sources ignore the base href. I've also tried specifying the deploy-url, but I get the same result.
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: