-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
Unable to load fonts (returning 404) #1900
Comments
This will work if there is a directory |
@shilman The project directory is |
I have the same issue. Can not load fonts I have got 404 |
@njj When you run In your case, everything under the assets directory should show up at the root, e.g. |
In my situation the problem was caused by sass loader so i moved font face statements to CSS files and then import this CSS file in sass |
@shilman Thanks! The solution ended up being:
|
@vanluke Renaming the SCSS file(s) containing font declarations to CSS made it worky |
Hi all, I've tried various approaches to getting my fonts to load, all which have failed.
The main application is routed through nginx, so I use the paths related to that i.e.
web-2
in the less files for loading the fonts:I am using the
-s
flag when running storybook to point at./assets/
When loading the fonts, the less file looks something like:
The console error I get is something similar to:
Does anyone have any advice on how to get these to load properly?
The text was updated successfully, but these errors were encountered: