gowravshekar / font-awesome-webpack

font-awesome package for webpack
MIT License
192 stars 49 forks source link

Can get this to work if publicPath is set to a specific folder #14

Closed jusefb closed 8 years ago

jusefb commented 8 years ago

Hi,

I could not get this plugin to work. When I set the publicPath value to a specific folder rather than "/" which is required by my application,all the urls within the font-face definition get overwritten causing the fonts not to load. Setting the @fa-path did not help either. Any suggestions on how to solve this would be welcome.

gowravshekar commented 8 years ago

@jusefb, please post your webpack configuration.

jusefb commented 8 years ago

I have pinpointed the problem to the ExtractText plugin. Everything works fine when loading stylesheets without ExtractText as soon as ExtractText is used all the css url() properties get the publicPath appended to them which causes the problem of the wrong path to the font fiels. I guess this is not really an issue with the font-awesome-plugin.

Thanks for looking into this anyway.