WizardRandom

u/WizardRandom


r/reactjs•

Hey everyone,

I hope this doesn't turn out to be a question that's asked commonly or seems naive, but I've scoured the internet for awhile and can't find the answer.

I'm still a newbie with the front end of things, and have been working at a personal project. I've a friend who's been handing the CSS/SaSS side, but she's more familiar with Angular.

When I do a simple npm run dev, the project loads fine there are no issues at all, but for the npm run build/npm run preview, the fonts do not load at all.

I've got the following format for the fonts in index.scss:

[u/font-face](/u/font-face) {
    font-family: "Walter Turncoat";
    src: local("Walter Turncoat"),
        URL('./fonts
12