SVGO options applied incorrectly
mindtraveller opened this issue · 4 comments
mindtraveller commented
Here is a configuration:
{
loader: 'react-svg-loader',
options: {
jsx: true,
svgo: {
plugins: [
{
convertShapeToPath: false,
removeTitle: true,
removeDesc: true,
},
],
},
},
All SVGO options work fine there.
But once new false option is added, next false options after it stop working. true options seems to still work fine.
{
removeViewBox: false,
convertShapeToPath: false,
removeTitle: true,
removeDesc: true,
}
In the example above convertShapeToPath
stops working after adding removeViewBox
though it worked fine before. If the convertShapeToPath
goes first - removeViewBox
does not work then.
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
mindtraveller commented
is this repo still alive?
moklick commented
Hey @mindtraveller
I think it's:
{
loader: 'react-svg-loader',
options: {
jsx: true,
svgo: {
plugins: [
{ convertShapeToPath: false },
{ removeTitle: true },
{ removeDesc: true }
],
},
},
mindtraveller commented
@moklick shame on me...
thanks, that now works