Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChucKN0risK/3d70a57782b7ee98c95667ab2e074d20 to your computer and use it in GitHub Desktop.
Save ChucKN0risK/3d70a57782b7ee98c95667ab2e074d20 to your computer and use it in GitHub Desktop.
{
"repository": "your-specify-repository",
"personalAccessToken": "personal-access-token",
"rules": [
{
"name": "Design Tokens / Icons",
"path": "assets/icons",
"filter": {
"types": ["vector"]
},
"parsers": [
{
"name": "svgo",
"options": {
"svgo": {
"plugins": [
{
"removeAttrs": {
"attrs": "*:(fill|stroke)"
}
},
{
"addAttributesToSVGElement": {
"attributes": ["fill=\"currentColor\"", "stroke=\"currentColor\""]
}
}
]
}
}
},
{
"name": "name-assets-files-by-pattern",
"options": {
"pattern": "{{name}}.{{format}}"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment