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",
|
"removeStyleElement",
|
||||||
"cleanupAttrs",
|
"cleanupAttrs",
|
||||||
"cleanupEnableBackground",
|
"cleanupEnableBackground",
|
||||||
"cleanupIds",
|
|
||||||
"minifyStyles",
|
"minifyStyles",
|
||||||
"removeDoctype",
|
"removeDoctype",
|
||||||
"removeDesc",
|
"removeDesc",
|
||||||
@@ -29,7 +28,7 @@ export const optimizeSvg = ({ svgCode }: OptimizeSvg) => {
|
|||||||
"removeXMLProcInst",
|
"removeXMLProcInst",
|
||||||
{
|
{
|
||||||
name: "removeAttrs",
|
name: "removeAttrs",
|
||||||
params: { attrs: "(data-name|id|class)" },
|
params: { attrs: "(data-name|class)" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user