1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-15 11:04:13 +02:00

add feature: svgo auto optimization to pull requests (#1554)

* Add a workflow to SVGO Optimizer

* update `svgo.config.js`

* Update optimize_icons.yml

---------

Co-authored-by: Jørgen Kalsnes Hagen <43886029+Snailedlt@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Josélio Júnior
2023-02-26 01:55:49 -03:00
committed by GitHub
parent 5f9ccb1157
commit 2160753bf1
2 changed files with 52 additions and 0 deletions

31
.github/scripts/svgo.config.js vendored Normal file
View File

@@ -0,0 +1,31 @@
module.exports = {
plugins: [
{
name: 'preset-default'
},
{
name: 'removeDimensions',
params: {
overrides: {
removeDimensions: true,
}
}
},
{
name: 'removeScriptElement',
params: {
overrides: {
removeScriptElement: true,
}
}
},
{
name: "removeAttrs",
params: {
attrs: [
'path:fill:none'
]
}
}
]
};