Wrong writing
plugins: [
{removeAttrs: {attrs: "path:fill"}}
]
Correct writing
plugins: [
{
name: 'removeAttrs',
params: {
attrs: 'fill'
}
}
]
Demo: https://github.com/svg/svgo/blob/master/plugins/removeAttrs.js