typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReactJS + Custom fonts + webfrontloader => MIME type error

sjb3 opened this issue · comments

Hi,

I have a quick question using custom fonts with webfontloader.
After setting @font-face in src/index.css and installed Webfont and loaded in src/index.js
It worked fine in local machine. however, it went through the build pipeline and on my dev server,
it throws error
'''
MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
'''
Is there way that i bypass the build process errors?

Please help!

Hi,

Did you found something to avoid MIME type error?