From 782db28a2fd59f12067f583e60190f0623a20237 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Thu, 27 Jun 2024 15:17:03 +0200 Subject: [PATCH] half cost of prettifying markup Prettifying the markup has an obvious cost, at the same time the entire purpose of the tool is to reduce the size of an SVG. Since there is a single-byte option for indentation characters that is actually intended to be used for indentation, use that instead. Signed-off-by: Moritz Poldrack --- src/js/svgo-worker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/svgo-worker/index.js b/src/js/svgo-worker/index.js index 36bf9d3bf..4b0d0e580 100644 --- a/src/js/svgo-worker/index.js +++ b/src/js/svgo-worker/index.js @@ -65,7 +65,7 @@ function compress(svgInput, settings) { multipass: settings.multipass, plugins: [...plugins, extractDimensionsPlugin], js2svg: { - indent: 2, + indent: '\t', pretty: settings.pretty, }, });