summaryrefslogtreecommitdiffstats
path: root/svgo.config.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:04:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:04:03 +0000
commit6a28c44d98bc276aa91bdddb5f80437cf337ead3 (patch)
treeb811886f00bbd47267d9faa8cab194c1d201fca4 /svgo.config.mjs
parentAdding upstream version 1.11.2+dfsg. (diff)
downloadbootstrap-icons-upstream/1.11.3+dfsg.tar.xz
bootstrap-icons-upstream/1.11.3+dfsg.zip
Adding upstream version 1.11.3+dfsg.upstream/1.11.3+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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'
]
}