SVGO config not being used
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 in1.0.4
!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.