revert: 撤销 svgo 配置
This commit is contained in:
parent
eef5807040
commit
0cbb1ea998
@ -94,19 +94,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
// 生成 SVG 雪碧图
|
// 生成 SVG 雪碧图
|
||||||
createSvgIconsPlugin({
|
createSvgIconsPlugin({
|
||||||
iconDirs: [resolve(root, "src/common/assets/icons")],
|
iconDirs: [resolve(root, "src/common/assets/icons")],
|
||||||
symbolId: "icon-[dir]-[name]",
|
symbolId: "icon-[dir]-[name]"
|
||||||
// 自定义 SVGO 配置
|
|
||||||
svgoOptions: {
|
|
||||||
plugins: [
|
|
||||||
// 移除 fill 属性
|
|
||||||
{
|
|
||||||
name: "removeAttrs",
|
|
||||||
params: {
|
|
||||||
attrs: "fill"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
// 原子化 CSS
|
// 原子化 CSS
|
||||||
UnoCSS()
|
UnoCSS()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user