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

Remove id file name on symbols #530

Open
ademyalcin27 opened this issue Nov 1, 2021 · 4 comments
Open

Remove id file name on symbols #530

ademyalcin27 opened this issue Nov 1, 2021 · 4 comments

Comments

@ademyalcin27
Copy link

ademyalcin27 commented Nov 1, 2021

Hi,

When I use it, it's added prefix file path like that how can I remove it?

Screen Shot 2021-11-01 at 17 23 28

and The file is uglified itself. How can I disable uglify?

NPM Script;

"svg-sprite -s --symbol-dest ./src/assets/img --symbol-sprite sprite.svg ./src/assets/img/sprite/*.svg"

@XhmikosR
Copy link
Member

You could try settings transform to false which should disable svgo.

@XhmikosR
Copy link
Member

Oh, wait you mean in the ID.

@XhmikosR XhmikosR reopened this Feb 10, 2022
@chimok
Copy link

chimok commented Oct 6, 2023

@XhmikosR This is a well known bug in 2.0.2 and the reason why I stay on 2.0.1 since almost 1 year. Btw, I did set the namespaceIDs and namespaceClassnames to false but still have the folder prefixes.

This is very annoying since I load my icons with web components in shadow dom and don't need any prefixes at all.

@XhmikosR
Copy link
Member

XhmikosR commented Mar 2, 2024

Happy to accept a PR with a test case that targets main.

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

3 participants