From 1771cc14bef3a7919a7556709f5ec1b56fd00c6c Mon Sep 17 00:00:00 2001 From: David Yan Date: Wed, 30 Dec 2015 01:22:54 -0800 Subject: [PATCH] Added an example of how to configure the indent of pretty formatted svgs in the sample .svgo.yml --- .svgo.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.svgo.yml b/.svgo.yml index 43a15d5bd..eedb2ea1c 100644 --- a/.svgo.yml +++ b/.svgo.yml @@ -55,3 +55,11 @@ plugins: - removeAttrs - addClassesToSVGElement - removeStyleElement + +# configure the indent (default 4 spaces) used by `--pretty` here: +# +# @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options +# +# js2svg: +# pretty: true +# indent: ' '