From 925a091c4df25d9affcbb6db2aa5f826c5d8c04f Mon Sep 17 00:00:00 2001 From: qlin Date: Thu, 27 Oct 2022 18:05:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20fes-icon=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=20viewBox=20=E5=AF=BC=E8=87=B4=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98=20(#153)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-icon/src/optimizeSvg.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/fes-plugin-icon/src/optimizeSvg.js b/packages/fes-plugin-icon/src/optimizeSvg.js index 545a6885..289b6cd7 100644 --- a/packages/fes-plugin-icon/src/optimizeSvg.js +++ b/packages/fes-plugin-icon/src/optimizeSvg.js @@ -4,7 +4,12 @@ import { optimize } from 'svgo'; const presetDefault = [ { - name: 'preset-default' + name: 'preset-default', + params: { + overrides: { + removeViewBox: false + } + } }, 'cleanupListOfValues', {