From 62e3351bc7b9f49504db653404c6a80a2a33f3cc Mon Sep 17 00:00:00 2001 From: yangxu52 Date: Thu, 6 Mar 2025 22:44:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E9=97=AD=E6=A0=87=E7=AD=BE``?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/svg/button.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/icons/svg/button.svg b/src/assets/icons/svg/button.svg index 904fddc8..d14d5806 100644 --- a/src/assets/icons/svg/button.svg +++ b/src/assets/icons/svg/button.svg @@ -1 +1 @@ - \ No newline at end of file + -- Gitee From acc760a20fb0de104eaf622b46205aeed61494d8 Mon Sep 17 00:00:00 2001 From: yangxu52 Date: Thu, 6 Mar 2025 22:45:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9svg-icon?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=90=AF=E7=94=A8svgo=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /src/assets/icons/build.svg导致svgo优化失败 - 现已修复,故启用svgo(默认即启用,故移除覆盖的`false`) --- vite/plugins/svg-icon.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vite/plugins/svg-icon.ts b/vite/plugins/svg-icon.ts index 71915b1e..3ad93fb8 100644 --- a/vite/plugins/svg-icon.ts +++ b/vite/plugins/svg-icon.ts @@ -5,8 +5,6 @@ export default (path: any) => { // 指定需要缓存的图标文件夹 iconDirs: [path.resolve(path.resolve(__dirname, '../../src'), 'assets/icons/svg')], // 指定symbolId格式 - symbolId: 'icon-[dir]-[name]', - // 是否使用svgo优化svg - svgoOptions: false + symbolId: 'icon-[dir]-[name]' }); }; -- Gitee