From 5d5829d9097a9f6ec8652bd94cbb463b89d8652e Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 2 Sep 2021 18:00:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20plugin-icon=20=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-icon/src/optimizeSvg.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)' + } } ];