Skip to content

Commit a169e0c

Browse files
fix(svgo): remove prefixIds plugin from SVGO configuration
The prefixIds plugin renames SVG symbol IDs during optimization, which breaks icon rendering: PHP references sprites via fixed hashes (e.g. #icon-facebook) in <use href="...">, and prefixed IDs no longer match those references. Removing the plugin restores stable symbol IDs and ensures icons display correctly in the sprite workflow.
1 parent 13624d5 commit a169e0c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

config/svgo.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ module.exports = {
1212
// Plugins that are not in the "preset-default" and that you want to activate
1313
'removeTitle',
1414
'convertStyleToAttrs',
15-
'prefixIds',
1615
],
1716
}

0 commit comments

Comments
 (0)