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

Overwrite problem with the same name style . #58

Open
mdxiaohu opened this issue Sep 13, 2023 · 1 comment
Open

Overwrite problem with the same name style . #58

mdxiaohu opened this issue Sep 13, 2023 · 1 comment

Comments

@mdxiaohu
Copy link

I really want to know how this plugin handles the style attribute in two SVG icons, including the class with the same name .
for example :
svg-1: { .class-one }
svg-2: { .class-one }

@oliverfindl
Copy link
Owner

Hello,

unfortunately this is not covered by this loader. This loader will only swap your image tag with contents of your SVG file. If you have defined some classes in your SVG file, they will end up in your code exactly same way, you have them in your SVG file - possibly overwriting already existing class names. You can imagine it like simple copy-paste operation.

If you have more questions, feel free to ask here.

Thanks.

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