3 * Compatible to v3.0.0+
4 * Recommended options from:
5 * https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
13 // Set of built-in plugins enabled by default.
14 name: 'preset-default',
21 // If the SVG doesn't start with an XML declaration, then its MIME type will
22 // be detected as "text/plain" rather than "image/svg+xml" by libmagic and,
23 // consequently, MediaWiki's CSSMin CSS minifier. libmagic's default database
24 // currently requires that SVGs contain an XML declaration:
25 // https://github.com/threatstack/libmagic/blob/master/magic/Magdir/sgml#L5
26 removeXMLProcInst: false
33 // Set whitespace according to Wikimedia Coding Conventions.
34 // @see https://github.com/svg/svgo/blob/main/lib/stringifier.js#L39 for available options.
38 // Configure the indent to tabs (default 4 spaces) used by `--pretty` here.