-
Notifications
You must be signed in to change notification settings - Fork 130
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
How to load SVG images? #22
Comments
can you help me? |
If you want to use svg files, you have to add a file-loader in your
|
@washaweb this boilerplate use url-loader to loading images, why for svg images i need to use file-loader? |
How can I reference to the SVG file in the index.html after I added the loader to webpack's config files? |
@chrisschaetzlein either remove the '.' at the beginning of the SVG path or add a slash just after. You URL should look like this:
|
@washaweb That was a typo in my comment, sorry. I already had |
@UlpiusCode You could do that (using |
@chrisschaetzlein do you place this code in a |
@washaweb jeez, I started the include in the .html file with |
;-) |
Thanks for the help @washaweb ! And sorry I couldn't look into this everyone else, stressing out over deadlines currently. Will incorporate the solution into the README. |
Nice starter! How I can load SVG images in html and background: url()?
Thanks a lot!
The text was updated successfully, but these errors were encountered: