-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Unexpected character '@' when importing fonts #311
Comments
Please post the whole file. I can’t reproduce this. |
I’m closing because there are not enough instructions to reproduce. |
I came across this issue as well. For example if I have a local font file like this
and then I try to import it in
it gives me an error
I guess I could include the font separately in index.html, so in my case it's not a big issue. |
I don’t think this would work:
The instructions in generated README say:
Your CSS file is not inside |
Ah, you're right. Forgot about that, it does work inside src. |
I had this problem too. It's not at all intuitive for images and fonts to be located within src. |
This was fixed in #504. |
When I import a custom font using the following code inside a .css file, it creates an error saying "Unexpected character '@'".
How can I import a custom font in my project?
The text was updated successfully, but these errors were encountered: