revert: 撤销 svgo 配置

This commit is contained in:
pany 2024-11-27 17:41:00 +08:00
parent eef5807040
commit 0cbb1ea998

View File

@ -94,19 +94,7 @@ export default defineConfig(({ mode }) => {
// 生成 SVG 雪碧图
createSvgIconsPlugin({
iconDirs: [resolve(root, "src/common/assets/icons")],
symbolId: "icon-[dir]-[name]",
// 自定义 SVGO 配置
svgoOptions: {
plugins: [
// 移除 fill 属性
{
name: "removeAttrs",
params: {
attrs: "fill"
}
}
]
}
symbolId: "icon-[dir]-[name]"
}),
// 原子化 CSS
UnoCSS()