We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fails to load in SVG's for me. I've added the following into webpack.config.helper.js in the rules section.
webpack.config.helper.js
{ test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader' }
And getting You may need an appropriate loader to handle this file type. on all the SVG types. Any suggestions?
You may need an appropriate loader to handle this file type.
The text was updated successfully, but these errors were encountered:
Try to use raw-loader for loading SVG's webpack-contrib/url-loader#6
raw-loader
Sorry, something went wrong.
you can use url-loader to use with <img /> tags at html and css background-image rule.
url-loader
<img />
background-image
import svg from './file.svg'; const img = `<img src="${svg}" />`; document.body.innerHTML = img;
div { width: 100px; height: auto; background-img: url(./file.svg) no-repeat center; }
No branches or pull requests
Fails to load in SVG's for me.
I've added the following into
webpack.config.helper.js
in the rules section.And getting
You may need an appropriate loader to handle this file type.
on all the SVG types. Any suggestions?The text was updated successfully, but these errors were encountered: