-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get fonts to load? #5
Comments
Same here, console output says |
I just found out I had another loader config messing this up. I had something like {
test: /\.woff(2)?(\?v=.+)?$/,
use: 'url-loader?limit=10000&mimetype=application/font-woff'
},
{
test: /\.(ttf|eot|svg)(\?v=.+)?$/,
use: 'file-loader'
}, in my webpack config before the recommended { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&mimetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" } It works fine now, sorry. |
The problem already exists with webpack2 and this package with v2 ? |
With a default Rails 5.1 install with webpack enabled,
which causes this problem until the |
Hi, I'm using es6 and webpack, and I'm not terribly experienced with either. I followed your directions but when I put in to the jsx:
<span className="fa fa-question"/>
I just get a box. I take this to mean the font isn't loading. Both production and development.
Loaders in webpack.config.js:
(the third line is loaders for some other custom fonts, which works fine)
In index.js:
import "font-awesome-sass-loader";
There is no error, in console nor in the npm build terminal. The fonts are there if I build for production, but doesn't seem to pick them up (the box appears instead of the icon). Can you tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered: