revert: 撤销 svgo 配置
This commit is contained in:
parent
eef5807040
commit
0cbb1ea998
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user