diff --git a/packages/fes-plugin-icon/src/optimizeSvg.js b/packages/fes-plugin-icon/src/optimizeSvg.js index 14111673..a945e31b 100644 --- a/packages/fes-plugin-icon/src/optimizeSvg.js +++ b/packages/fes-plugin-icon/src/optimizeSvg.js @@ -8,15 +8,15 @@ const presetDefault = [ params: { overrides: { sortAttrs: true, - removeDimensions: true, - // customize options - removeAttrs: { - params: { - attrs: '(stroke|fill|class)' - } - } + removeDimensions: true } } + }, + { + name: 'removeAttrs', + params: { + attrs: '(fill|stroke|class)' + } } ];