summaryrefslogtreecommitdiffstats
path: root/svgo.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'svgo.config.mjs')
-rw-r--r--svgo.config.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/svgo.config.mjs b/svgo.config.mjs
index 4f4c9e2..bcc32b0 100644
--- a/svgo.config.mjs
+++ b/svgo.config.mjs
@@ -13,21 +13,21 @@ export default {
params: {
overrides: {
removeUnknownsAndDefaults: {
- keepRoleAttr: true
+ keepDataAttrs: false, // remove all `data` attributes
+ keepRoleAttr: true // keep the `role` attribute
},
- removeViewBox: false
+ removeViewBox: false // keep the `viewBox` attribute
}
}
},
// The next plugins are included in svgo but are not part of preset-default,
- // so we need to enable them separately
+ // so we need to explicitly enable them
'cleanupListOfValues',
{
name: 'removeAttrs',
params: {
attrs: [
'clip-rule',
- 'data-name',
'fill'
]
}