On Laravel 5.8 I have my fonts set in my public/fonts folder and use them in my .scss
@font-face {
font-family: 'HelveticaNeue";
src:url("fonts/HelveticaNeue.otf") format("opentype"),
url('fonts/HelveticaNeue.woff') format('woff');
}
The development environment shows the fonts correctly, but my Azure web app doesn't and displays a 404 Not Found.
The configuration of the server sets the root folder as /public and npm run prod as been used to generate the .css file in /public/css/app.css.
website.com/css/app.css can be used to access the css but website.com/fonts/fontname.extension throws a 404 in the network tab and the following message:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
What am I missing that does not allow the css to find the font I'm using ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire