svg-sprite / svg-sprite

SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove id file name on symbols

ademyalcin27 opened this issue · comments

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"

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

Oh, wait you mean in the ID.

@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.