-
Notifications
You must be signed in to change notification settings - Fork 23
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
Issues with loading assets in production #71
Comments
Try to define your path relative to the
If you have |
Your fonts should be relative to your
And then in
|
What font paths do you call in |
|
@font-face
font-family: favorit
- src: url("/assets/fonts/fl.woff2") format('woff2')
+ src: url("../fonts/fl.woff2") format('woff2')
…
font-weight: 300
font-style: normal
font-display: fallback |
This is the error i get
|
seems like it doesn't recognise the two dots, it only shows one |
Clearly './fonts/fl.ttf' and '../fonts/fl.ttf' are two differents paths. You may have broken something in the webpack configs when you changed your preprocessor to SASS. |
I'm pretty sure all I changed was line 12 in the
|
Hi i am able to load this font file in my dev environment but when i move to production i get a 404. I'm not sure what to do. By the way I changed my css preprocessor to SASS.
The text was updated successfully, but these errors were encountered: