ReactJS + Custom fonts + webfrontloader => MIME type error
Author: sjb3Created Aug 27, 2021Updated Feb 3, 2023
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!
Source: typekit/webfontloader