grunt-svgstore
grunt-svgstore copied to clipboard
Cleanup option is not working
I've set the cleanup option to true
(and also tried cleanup: ['style']
) but my svg-defs.svg file still has style tags.
svgstore: {
options: {
prefix : "icon-",
includeTitleElement: true,
cleanup: true,
svg: {
style: "display: none;"
},
symbol: {},
formatting : {
indent_size : 2
}
},
default: {
files: {
"images/svg/svg-defs.svg": ["assets-svg/*.svg"]
}
}
},
not running cleanup for me either, my strokes are still there
svgstore: {
options: {
prefix : '',
svg: {
viewBox : '0 0 24 24',
style: 'display: none;',
xmlns: 'http://www.w3.org/2000/svg'
}
,includedemo: true
},
cleanup: ['stroke'],
cleanupdefs: ['stroke'],
default: {
files: {
'dist/icons.svg': ['svgs/*.svg'],
}
},
}
<path fill="none" stroke="#222222" stroke-width="2"