Closed soerenmartius closed 2 years ago
Hi, when looking at the svgo docs, it looks like you should use the following notation when registering plugins:
{
name: 'prefixIds',
params: {
prefix: ({ path }: { path: string }) => basename(path, '.svg'),
delim: '-'
}
}
Could you try if that works?
Thanks - that was helpful. Should have checked the docs myself. My apologies for the noise!
You're welcome
Hi!
I am trying to configure some plugins such as
cleanupIDs
andprefixIds
. This is my configuration but the loader returns an error[plugin:svg-loader] Plugin name should be specified
I am using the same SVGs multiple times in the same page but they won't be displayed correctly because of conflicting IDs.
Could I get some advice on how to configure plugins? Many thanks!