diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-10-01 13:02:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 13:02:25 +0300 |
commit | 4103bcb495d3367f085c2b865aff2f00aeec0183 (patch) | |
tree | 8057a1ba9402e5333f66b4d3899a1da4531e9fa9 /svgo.config.js | |
parent | f6974f3d790fc6ebffa78789badcb420ab2067e4 (diff) |
Update svgo to v2.7.0. (#982)
Diffstat (limited to 'svgo.config.js')
-rw-r--r-- | svgo.config.js | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/svgo.config.js b/svgo.config.js index 01404136f..3458e49b1 100644 --- a/svgo.config.js +++ b/svgo.config.js @@ -1,39 +1,29 @@ 'use strict' -const { extendDefaultPlugins } = require('svgo') - module.exports = { multipass: true, js2svg: { pretty: true, indent: 2 }, - plugins: extendDefaultPlugins([ - { - name: 'cleanupListOfValues' - }, - { - name: 'removeAttrs', - params: { - attrs: [ - 'data-name', - 'fill', - 'clip-rule' - ] - } - }, - { - name: 'removeUnknownsAndDefaults', - params: { - keepRoleAttr: true + plugins: [{ + name: 'preset-default', + params: { + overrides: { + cleanupListOfValues: true, + removeAttrs: { + attrs: [ + 'data-name', + 'fill', + 'clip-rule' + ] + }, + removeUnknownsAndDefaults: { + keepRoleAttr: true + }, + removeViewBox: false, + sortAttrs: true } - }, - { - name: 'removeViewBox', - active: false - }, - { - name: 'sortAttrs' } - ]) + }] } |