-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
loading fonts via url() only works in production mode #41
Comments
Seems to be caused by the |
Switch off sourceMaps for CSS... |
see #29 |
well I consider switching sourceMaps off a workaround, but since this is a duplicate of #29 I'll close this issue. feel free to use the gist linked above as a way to reproduce the problem. |
yes, thanks. I would like to fix it, but the problem is that I have no idea how to do that. SourceMaps doesn't seem to work in |
The same issue. I hope a solution will be found. |
I observed some weird behavior when I was trying to use font-awesome in a webpack powered project.
I trimmed the code down as much as possible and put it into a gist: https://gist.github.com/Turbo87/e8e941e68308d3b40ef6
I installed
font-awesome
vianpm
and userequire
to import its CSS file through thestyle
andcss
loaders. The CSS file has a@font-face
which usesurl()
with a relative path to point to the font file(s). When I compile this with webpack in production mode everything works just as expected, but once I drop the-p
parameter the code suddenly tries to load the font file from/
for whatever reason and fails.I observed that behavior with Google Chrome and Firefox, so it is probably not a browser issue.
The text was updated successfully, but these errors were encountered: