rollup-plugin-svg
rollup-plugin-svg copied to clipboard
Collapse whitespaces
Can we add new setting svg({ whitespace: "collapse" })
and collapse whitespaces to one space?
'\n \t \n' -> ' ' '\n\n\n \n' -> ' '
I'd be happy to accept a PR for this :)
@munrocket you could use svgomg before you save the svg to disk, so you don't have to do parsing after