Skip to content

Commit

Permalink
Upgrade to svgo 2.5 and add preset-default example
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Sep 10, 2021
1 parent 15c1845 commit 5bd5786
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 211 deletions.
28 changes: 13 additions & 15 deletions example/external-config/svgo.config.js
@@ -1,19 +1,17 @@
const { extendDefaultPlugins } = require('svgo');
module.exports = {
plugins: extendDefaultPlugins([
plugins: [
{
name: 'removeTitle',
active: false
},
{
name: 'convertPathData',
active: false
},
{
name: 'convertColors',
name: "preset-default",
params: {
shorthex: false
}
}
])
overrides: {
removeTitle: false,
convertPathData: false,
convertColors: {
shorthex: false,
},
},
},
},
"prefixIds",
],
};

0 comments on commit 5bd5786

Please sign in to comment.