Skip to content

Commit

Permalink
Modernize svgo config
Browse files Browse the repository at this point in the history
  • Loading branch information
Repiteo committed Apr 22, 2024
1 parent 467cba6 commit 9594387
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions svgo.config.js
@@ -1,12 +1,16 @@
const { extendDefaultPlugins } = require('svgo');

module.exports = {
multipass: true,
precision: 2,
plugins: extendDefaultPlugins([
plugins: [
{
name: 'preset-default'
},
'convertStyleToAttrs',
'removeDimensions',
'removeOffCanvasPaths',
'removeStyleElement',
'removeScriptElement',
'removeStyleElement',
'reusePaths',
])
}
'sortAttrs',
]
}

0 comments on commit 9594387

Please sign in to comment.