mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-18 01:00:35 -04:00
svgo: change plugins order to fix sortAttrs
This commit is contained in:
parent
8b889e4be5
commit
deef568659
1 changed files with 20 additions and 20 deletions
|
@ -11,6 +11,26 @@ module.exports = {
|
|||
'removeMetadata',
|
||||
// remove editors namespaces, elements and attributes
|
||||
'removeEditorsNSData',
|
||||
{
|
||||
// sort element attributes for epic readability
|
||||
name: 'sortAttrs',
|
||||
params: {
|
||||
order: [
|
||||
'id',
|
||||
'fill', 'stroke', 'opacity',
|
||||
'style', 'class',
|
||||
'width', 'height',
|
||||
'x', 'x1', 'x2',
|
||||
'y', 'y1', 'y2',
|
||||
'cx', 'cy',
|
||||
'rx', 'ry', 'r',
|
||||
'transform',
|
||||
'marker',
|
||||
'points',
|
||||
'd',
|
||||
]
|
||||
}
|
||||
},
|
||||
// cleanup attributes values from newlines, trailing and repeating spaces
|
||||
'cleanupAttrs',
|
||||
/**
|
||||
|
@ -80,26 +100,6 @@ module.exports = {
|
|||
'removeEmptyContainers',
|
||||
// remove unused namespaces declaration
|
||||
'removeUnusedNS',
|
||||
{
|
||||
// sort element attributes for epic readability
|
||||
name: 'sortAttrs',
|
||||
params: {
|
||||
order: [
|
||||
'id',
|
||||
'fill', 'stroke', 'opacity',
|
||||
'style', 'class',
|
||||
'width', 'height',
|
||||
'x', 'x1', 'x2',
|
||||
'y', 'y1', 'y2',
|
||||
'cx', 'cy',
|
||||
'rx', 'ry', 'r',
|
||||
'transform',
|
||||
'marker',
|
||||
'points',
|
||||
'd',
|
||||
]
|
||||
}
|
||||
},
|
||||
// remove <title>
|
||||
'removeTitle',
|
||||
// remove <desc>
|
||||
|
|
Loading…
Reference in a new issue