mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
fix: delete `cleanupIds plugin & id params in optimizeSvg()` utility
This commit is contained in:
@@ -15,7 +15,6 @@ export const optimizeSvg = ({ svgCode }: OptimizeSvg) => {
|
||||
"removeStyleElement",
|
||||
"cleanupAttrs",
|
||||
"cleanupEnableBackground",
|
||||
"cleanupIds",
|
||||
"minifyStyles",
|
||||
"removeDoctype",
|
||||
"removeDesc",
|
||||
@@ -29,7 +28,7 @@ export const optimizeSvg = ({ svgCode }: OptimizeSvg) => {
|
||||
"removeXMLProcInst",
|
||||
{
|
||||
name: "removeAttrs",
|
||||
params: { attrs: "(data-name|id|class)" },
|
||||
params: { attrs: "(data-name|class)" },
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user