var svgSpriteConf = {
dest: '.'
, selector: ''
, shape: {
id: {
separator: '' // Separator for directory name traversal
}
, transform: [
{svgo: svgminConf}
]
}
, svg: { // General options for created SVG files
xmlDeclaration: false, // Add XML declaration to SVG sprite
doctypeDeclaration: false, // Add DOCTYPE declaration to SVG sprite
namespaceIDs: false, // Add namespace token to all IDs in SVG shapes
dimensionAttributes: false // Width and height attributes on the sprite
}
, mode: {
symbol: {
dest: '.'
, sprite: 'symbol.svg'
, prefix: ''
, dimensions: '.'
, bust: false
//, render: {styl: true}
}
}
};
svg: { namespaceClassnames: false }
. Например:.pipe(svgSprite({
svg: {
namespaceClassnames: false
},
shape: {
id: { // SVG shape ID related options
separator: '__', // Separator for directory name traversal
},
},
mode: {
symbol: {
dest: '', // Mode specific output directory
sprite: 'symbol.svg', // Sprite path and name
}
},
transform: [
{
svgo: {
js2svg: { pretty: true },
}
}
]
}))