-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: The local font files referred via css/scss isn't processed well in built css. #2276
Comments
Update: I tried Fontsource as well but It's not working as well. Still getting this weird (to me) asset ref in built css:
|
x2 |
I believe this was fixed in a later version of Astro than |
@ahsath @vipindigiqt Not sure if you still have the issue, but I made this script to replace the |
Looks like this may have been fixed in a later version of Astro as @jonathantneal mentioned above The |
What version of
astro
are you using?0.21.12
What package manager are you using?
yarn
What operating system are you using?
Linux
Describe the Bug
I'm trying to reference my local font files which are in
public/assets/fonts/
(.woff, .woff2) through scss and I'm using/assets/fonts..
to refer them.Its all fine on local server, but breaks on CSS build. the relative font url is not correct in css.
Link to Minimal Reproducible Example
https://codesandbox.io/s/cool-jepsen-s83m7?file=/src/pages/index.astro
The text was updated successfully, but these errors were encountered: