summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-06-04 09:49:56 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-06-23 08:14:54 -0500
commit4af10686882b223879562a5c2adacad6fb756f02 (patch)
tree585c2f6fffe86fb1e4275c592b48237ad677dbd8 /misc
parent04bf7d4cade645a5923cc80d87ac1c6109e2cdfe (diff)
downloadredot-engine-4af10686882b223879562a5c2adacad6fb756f02.tar.gz
CI: Add `svgo` pre-commit hook
Diffstat (limited to 'misc')
-rw-r--r--misc/utility/svgo.config.mjs20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/utility/svgo.config.mjs b/misc/utility/svgo.config.mjs
new file mode 100644
index 0000000000..d4c14f007c
--- /dev/null
+++ b/misc/utility/svgo.config.mjs
@@ -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",
+ ],
+};