UNPKG

@psoares/svg-list

Version:

Generates a JSON or Javascript list with optimised SVGs strings

23 lines (21 loc) 559 B
const config = { /** * setup SVGO plugins as you like but * remember: the goal of this tool * is to use an array of paths to form * the icon, so, basically, this parses the * svg html and gets the viewbox attr and an * array of `d` (from paths) attrs only. */ plugins: [ { name: 'preset-default', overrides: { removeViewBox: { active: false } } }, 'removeDimensions', { name: 'removeAttrs', params: { attrs: ['fill', 'stroke', 'style'] } } ] }; module.exports = config;