Although this adds another requirement to execute this script, it will prevent OS-specific issues on sed and grep as described in #1503, and make sure anyone can generate the same SVG output files.
--pretty is kept for convenience but can be removed if needed.
Not overly keen on the dependency on node.js introduced by svgo, however, this is better than the current situation of platform-specific issues with sed and grep. Thanks.
Although this adds another requirement to execute this script, it will prevent OS-specific issues on
sed
andgrep
as described in #1503, and make sure anyone can generate the same SVG output files.--pretty
is kept for convenience but can be removed if needed.Closes #1503