Skip to content

ReactJS + Custom fonts + webfrontloader => MIME type error  #446

@sjb3

Description

@sjb3

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions