fix(ui): fix icon build script to rewrite clipPath and clipRule

This commit is contained in:
sylenien 2022-06-22 17:02:08 +02:00
parent fe14907303
commit aadd7d5418
2 changed files with 17 additions and 15 deletions

File diff suppressed because one or more lines are too long

View file

@ -86,6 +86,8 @@ ${icons.map(icon => {
const { data } = optimize(svg, plugins(canOptimize));
return ` case '${icon.slice(0, -4)}': return ${data.replace(/xlink\:href/g, 'xlinkHref')
.replace(/xmlns\:xlink/g, 'xmlnsXlink')
.replace(/clip-path/g, 'clipPath')
.replace(/clip-rule/g, 'clipRule')
.replace(/xml:space="preserve"/g, '')};`
}).join('\n')}
default: