Skip to content

Load font (Semantic-UI React) #1298

@GreGGus

Description

@GreGGus

Hey,

I'm tried to use CRA with Semantic UI React

http://react.semantic-ui.com/

Everything is good, but ONE feature doesnt work : the Icon.
Webpack can't load .woff and .ttf.

Here's my error with Firefox :

"downloadable font: invalid version tag (font-family: "Icons" style:normal weight:normal stretch:normal src index:2)
source http://localhost:3000/themes/default/assets/fonts/icons.woff

downloadable font: rejected by sanitizer (font-family : "Icons" style:normal weight:normal stretch:normal src index:2)
source http://localhost:3000/themes/default/assets/fonts/icons.woff"

I have the same error but with *.ttf files.

I suppose that with CRA, you can't add new loaders to Webpack right ?

Any ideas ?

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions