From b9dc254eb30c34a1afc5e516e7141f6aa61c5d09 Mon Sep 17 00:00:00 2001 From: Jan Six Date: Mon, 20 Nov 2023 23:18:38 +0100 Subject: [PATCH] Update svgo.config.js to preserve removeViewBox option --- svgo.config.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/svgo.config.js b/svgo.config.js index 5e4355e9c..e6fdec627 100644 --- a/svgo.config.js +++ b/svgo.config.js @@ -1,7 +1,12 @@ -{ - plugins: [ - { - removeViewBox: true - }, - ] - } \ No newline at end of file +module.exports = { + plugins: [ + { + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, + } + } + } + ] +}; \ No newline at end of file