-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Detect @font-face urls() #2
Comments
I've also changed it to this @font-face {
font-family: 'Museo300';
src: url(../assets/fonts/Museo/museo300-regular.woff) format('woff');
src: url(../assets/fonts/Museo/museo300-regular.ttf) format('truetype');
src: url(../assets/fonts/Museo/museo300-regular.svg) format('svg');
font-weight: normal;
font-style: normal;
} |
Works like a charm! Awesome! 👍 |
and if I don't want webpack detect @font-face url as a required ?? |
You could use root-relative urls which tells the css-loader to ignore these urls (unless you do specify a root url in your options). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like the css-loader doesn't detect url()s in @font-face declarations
This declaration is pretty standard (actually generated by fontsquirrel) to support different font formats.
The text was updated successfully, but these errors were encountered: