fix(ui): fix icons generation script to properly trim svg attrs
This commit is contained in:
parent
536bacad64
commit
0617e8b485
1 changed files with 1 additions and 2 deletions
|
|
@ -8,8 +8,7 @@ const ICONS_DIRNAME = 'app/svg/icons';
|
|||
const UI_DIRNAME = 'app/components/ui';
|
||||
|
||||
const svgo = new SVGO({ plugins: [
|
||||
//"width", "height", <- sometimes eating useful attrs from icons and break them
|
||||
{ removeAttrs: { attrs: [ "class", "data-name", "dataName" ] } },
|
||||
{ removeAttrs: { attrs: [ "class", "data-name", "dataName", "svg:width", "svg:height" ] } },
|
||||
{ addAttributesToSVGElement: { attributes: [ "width={ `${ width }px` }", "height={ `${ height }px` }" ] } },
|
||||
{ convertPathData: true }, // ?
|
||||
{ removeViewBox: false }, // ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue