-
Notifications
You must be signed in to change notification settings - Fork 4
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
url() in css does not work properly #4
Comments
I think this could be improved by adding a |
Hello ! For the moment the only way I found to avoid wrap some file in So you if you move the svg file you want to use in a folder named |
Yeah that's what I did for now. Maybe we should bring that up with the parcel team? It seems changing the ref could be important in other situations too |
I don't think we need some changes in parcel. The behavior with |
Hello! With this solution, you'll be able to import svg files without moving files in an What do you think about this solution? |
I think that's definitely a good idea. For our project it's okay to move the assets to an |
I didn't know that With I tried to use So if we want to make it works with css the plugin should generate sprite in an svg file instead of injecting it in HTML. So today I haven't any idea of how to make sprite works with css background without impact on the use case with I let this issue opened in case you or someone else find a solution to this problem. |
When i use a
url(...)
in an scss file, the correct file name is exported, but the svg is still emitted with a<symbol>
wrapper, causing the result to be invisible.The text was updated successfully, but these errors were encountered: