Skip to content

SVGO Error: Plugin name should be specified #138

Discussion options

You must be logged in to vote

Solution

The structure is different as referred from the documentation here: https://github.com/svg/svgo. The configuration that worked is:

        {
		name: "removeDimensions",
		active: true,
	},
	{
		name: "sortAttrs",
		active: true,
	},
	{
		name: "removeAttrs",
		params: {
			attrs: "(stroke)",
		},
	},
	{
		name: "addAttributesToSVGElement",
		params: {
			attributes: [
				{
					stroke: "currentColor",
				},
			],
		},
	},

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NikhilIluri
Comment options

@marcomontalbano
Comment options

@NikhilIluri
Comment options

Answer selected by bacon-delight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants