Using SVGO cleanupIDs to Prefix Icon IDs and Prevent Bundle Collisions
SVG icons from design tools carry bloated IDs that collide in bundles. SVGO's cleanupIDs plugin with a prefix strips the noise and keeps references unique.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
SVG icons from design tools carry bloated IDs that collide in bundles. SVGO's cleanupIDs plugin with a prefix strips the noise and keeps references unique.
Goal Clarify the behavior of the cleanupIDs plugin when processing SVG files that share identical ID attributes referenced via <use> elements across multiple files, while the plugins option is correctly defined as an array. Constraints Using svgo v2.x, a configuration file with plugins: ['cleanupIDs'] is considered valid. The SVG input contains duplica