Skip to content

Commit

Permalink
chore(flags): add svgo script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Aug 6, 2024
1 parent 5c4fbed commit 01f55ca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions devTools/flagUpdater/svgo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
js2svg: { indent: 2, pretty: true },
plugins: [
{
name: "preset-default",
params: {
overrides: {
cleanupIds: false,
},
},
},
"convertStyleToAttrs",
"removeDimensions",
"removeScriptElement",
"removeStyleElement",
"sortAttrs",
],
}
2 changes: 2 additions & 0 deletions devTools/flagUpdater/svgo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
npx svgo --config svgo.config.js ../../public/images/flags

0 comments on commit 01f55ca

Please sign in to comment.