From cde458b56abbc85622d5584cb0dfb2c1b2ff24b3 Mon Sep 17 00:00:00 2001 From: rhymes Date: Tue, 17 Aug 2021 18:54:10 +0200 Subject: [PATCH] svgo: update configuration for 2.4 syntax (#14524) --- svgo.config.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/svgo.config.js b/svgo.config.js index 152b000c6..19ef30ad4 100644 --- a/svgo.config.js +++ b/svgo.config.js @@ -1,11 +1,14 @@ -/* global require, module */ -const { extendDefaultPlugins } = require('svgo'); +/* global module */ module.exports = { - plugins: extendDefaultPlugins([ + plugins: [ { - name: 'removeViewBox', - active: false, + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, + }, + }, }, - ]), + ], };