question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVGO config not being used

See original GitHub issue

The code below outputs an SVG that is minified, with double title attributes and no prefix. Tried on version 1.0.3

new SVGSpritemapPlugin({
	src:path.resolve(__dirname,basePath + '/img/icons-svg/**/*.svg'),
	filename: 'img/sprite.svg',
	svgo:{
		removeTitle: false,
		minify:false,
		removeXMLNS:true,
		prefix: 'svg-icon-',
	},
	svg4everybody:true,
}), 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cascornelissencommented, Dec 13, 2017

I’ve been able to reproduce the double title element bug, no idea why I didn’t run into this any earlier but it’ll be fixed in 1.0.4!

0reactions
cascornelissencommented, Oct 18, 2017

I just tested this with @jacubsmith’s settings and I can’t reproduce the double title element.

If anyone else runs into a similar issue please provide a complete example and I’ll reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVGO config file - node.js - Stack Overflow
It is possible that you are inside a project that has an older version as a dependency which takes precedence over the global...
Read more >
Configuration Files - SVGR
The recommended way to configure SVGO for SVGR is to use svgo.config.js . Even if it is not recommended, you can also use...
Read more >
@svgo/jsx - npm
Custom renderer is a SVGO plugin which prepares jsx to any not supported out of the box renderers by converting tag names and...
Read more >
gatsby-plugin-svgr-svgo
Plugin allows you to use SVGs as react components, configure SVGO(SVG ... Add to your gatsby-config.js ... By default there are two rules...
Read more >
svgo-loader/README.md - UNPKG
The CDN for svgo-loader. ... 51, ### Or use an external config like you would with SVGO CLI ... 122, However, this option...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found