andreypopp / react-fa

DEPRECATED: use https://github.com/FortAwesome/react-fontawesome instead
http://andreypopp.github.io/react-fa/
489 stars 42 forks source link

Font not loading with Webpack Dev Server #42

Closed edenworky closed 8 years ago

edenworky commented 8 years ago

I can load it no problem, but the font doesn't load and it only shows squares instead of icons. Works properly when built and extracted.

My font loaders are the same as in the example.

konstantin24121 commented 8 years ago

Try change your publicPath to absolute

{
  output: {
    publicPath: "http://localhost:8080/", // Development server
    // publicPath: "http://example.com/", // Production
}

and here a question http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts/34133809#34133809

edenworky commented 8 years ago

Ohh, I see. I got it to work now. That can be misleading when trying to integrate the Webpack config in the README into an existing config. I'll put up a PR in a few minutes.

andreypopp commented 8 years ago

Glad you figured it out. Closing the issue as there's nothing actionable. Feel free to continue discussion.