Minify SVG files with svgo.
var svgo = newsvgo
To disable/enable plugins, look for the plugin name at the SVGO repository and copy the plugin name (minus the file extension).
Then set its value in the JSON to
false in comma-separated objects.
To exemplify, here is how the plugins section in the example configuration (illustrated above) might be written with some of the standard SVGO plugins disabled:
plugins:removeViewBox: false // don't remove the viewbox atribute from the SVGremoveUselessStrokeAndFill: false // don't remove Useless Strokes and FillsremoveEmptyAttrs: false // don't remove Empty Attributes from the SVG
Copyright (c) 2014 Yuanyan Cao. Licensed under the MIT license.