-
-
Notifications
You must be signed in to change notification settings - Fork 158
svg support #6
Comments
Doesn't this work already? |
SVG needs xml data not base64. When I configure the svg as so, it fails: Maybe I am doing something wrong. |
Use From config:
Usage:
... how we can optimize SVG on the fly? |
Yeah, after looking at what I was doing, I realized inline SVG should not be used from |
is it still the best solution? |
Idea of using multiple loaders for SVG is far mo-o-ore good solution than just Sorry mate, I can't find issue thread discussion for this. |
prob you are talking about webpack/webpack#595 |
This is what I get from "module.exports = "<svg fill=\"#000000\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z\"/>\n</svg>"" Obviously this is wrong xml document. |
Oh, I got it, inline loader does not overrides default loader. It works, nevermind. |
@ColCh Great idea to use |
@alkema pleased to help 😊 |
Is it possible to load some svgs inline from one folder and all others like path only? |
@alexandrbig have two loader/ruler items with two different test regexps and different configuration |
For what it's worth, in JupyterLab we're using the url-loader with a mimetype specified, like this:
|
I took a stab at this, but failed due to my lack of webpack knowledge.
I thought it would be great to have the limit support the svg extension mimetype (image/svg+xml)
I found this on StackOverflow
Any thoughts?
The text was updated successfully, but these errors were encountered: