-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Errors loading ionicons.css #18
Comments
You module: {
loaders: [
{ test: /\.(eot|woff)$/, loader: "file-loader" }
]
} |
Oh interesting. Okay. I assumed the css loader alone would pull all of it's dependencies. I'll try that. |
for the "?v=xxx" suffix, you'd need to use this regular expression: |
The following { test: /\.woff$/, loader: "url-loader?limit=10000&mimetype=application/font-woff" },
{ test: /\.ttf$/, loader: "url-loader?limit=10000&mimetype=application/octet-stream" },
{ test: /\.eot$/, loader: "file-loader" },
{ test: /\.svg$/, loader: "url-loader?limit=10000&mimetype=image/svg+xml" } |
Following worked for me {
test : /\.woff/,
loader : 'url?prefix=font/&limit=10000&mimetype=application/font-woff'
}, {
test : /\.ttf/,
loader : 'file?prefix=font/'
}, {
test : /\.eot/,
loader : 'file?prefix=font/'
}, {
test : /\.svg/,
loader : 'file?prefix=font/'
} |
this works for me:
|
this works for me: { test: /\.(eot|woff|woff2|svg|ttf)([\?]?.*)$/, loader: "file-loader" }, this is good for font-awesome |
{ for webpack2 |
Wow! An answer that actually works! Thank you very much sokra. |
hi,this is the error i meet,someone can help me? WARNING in ./src/assets/logo.png |
ERROR in ./ionicons-1.5.2/fonts/ionicons.eot?v=1.5.2
Module parse failed: /***/ionicons-1.5.2/fonts/ionicons.eot?v=1.5.2 Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./~/css-loader!./ionicons-1.5.2/css/ionicons.css 2:300-340 2:356-396
ERROR in ./ionicons-1.5.2/fonts/ionicons.woff?v=1.5.2
Module parse failed: /***/ionicons-1.5.2/fonts/ionicons.woff?v=1.5.2 Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./~/css-loader!./ionicons-1.5.2/css/ionicons.css 2:515-556
etc...
The text was updated successfully, but these errors were encountered: