diff options
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' } - ]) + }] } |