myPlugin is an example located in svgo website, but it seems is not really working at all, I keep getting the same fill value as is declared in the original <svg /> file.
I have checked the console log for both enter: and exit: of the function, it seems to actually change the fill: 'pink' like this, but the generated svg symbols still have the original fill.
Am I doing something wrong? I am not completely sure if this is an svgo issue or a svg-symbol-sprite issue though.
Hello, I am wondering if I'm doing something incorrect
I'm using the
cli
with this command:where config is a custom file I have created in the root of the project (same level as package.json)
this is my config file:
myPlugin
is an example located insvgo
website, but it seems is not really working at all, I keep getting the samefill
value as is declared in the original<svg />
file.I have checked the console log for both
enter:
andexit:
of the function, it seems to actually change thefill: 'pink'
like this, but the generated svg symbols still have the originalfill
.Am I doing something wrong? I am not completely sure if this is an
svgo
issue or asvg-symbol-sprite
issue though.