How to format a svg sprite?

Collect svg sprite using gulp-svg-sprite. In stack mode, if that matters.
Get a minified svg, ie in one row.
Is there any option to code the result was formatted conventional "ladder" via nesting of tags? Ideally with a blank line between the elements of the sprite.
April 19th 20 at 12:13
1 answer
April 19th 20 at 12:15
Solution
If you disable svgo, then
const configSVG = {
 transform: [],
 mode: {
 stack: true // Create a "stack" sprite
}
};

If you configure svgo, then
const configSVG = {
 transform: [{svgo: {
 js2svg: {pretty: true}, // Disable minification svg.
 plugins: [
 {cleanupListOfValues: {floatPrecision: 0}},
 {inlineStyles: {onlyMatchedOnce: false}},
 {removeAttrs: {attrs: ['stroke', 'data-name']}},
 {removeAttributesBySelector: {selector: ':not([fill="none"])', attributes: ['fill']}}
]
}}],
 mode: {
 stack: true // Create a "stack" sprite
}
};

According to the configuration svgo https://github.com/svg/svgo#what-it-can-do

Find more questions by tags SVGGulp.jsLayout