Skip to content
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

loading a concat SVG file and using with multiple IDs #8

Open
morscad opened this issue May 7, 2019 · 1 comment
Open

loading a concat SVG file and using with multiple IDs #8

morscad opened this issue May 7, 2019 · 1 comment

Comments

@morscad
Copy link

morscad commented May 7, 2019

I am loading a concatenated svg file which is the result of two SVG icons (the final file will have much more), and trying to have each icon show up individually by using its proper ID.
if I load each icon individually as in your example, it works great. but once I load the concact file it doesn't show anything.

attached is the svg file
here's the code I am using
import icons from '../../../static/assets/svgs/icons.svg'; <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-minus'}/> </svg> </button> <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-plus'}/> </svg> </button>
icons.svg.zip

@marcobiedermann
Copy link
Owner

marcobiedermann commented May 8, 2019

@morscad
I think your request should be reported in https://github.com/kisenka/svg-sprite-loader

This plugin is just a wrapper which modifies webpack under the hood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants