1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

CI: Add svgo pre-commit hook

This commit is contained in:
Thaddeus Crews
2024-06-04 09:49:56 -05:00
parent 04bf7d4cad
commit 4af1068688
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
export default {
multipass: true,
precision: 2,
plugins: [
{
name: "preset-default",
params: {
overrides: {
removeHiddenElems: false,
convertPathData: false,
},
},
},
"convertStyleToAttrs",
"removeScriptElement",
"removeStyleElement",
"reusePaths",
"sortAttrs",
],
};