From c52e59657a21ba5bc7437be11ba87b768af3cc90 Mon Sep 17 00:00:00 2001 From: Michael Taranto Date: Tue, 27 Nov 2018 12:06:33 +1100 Subject: [PATCH] fix: Disable removing viewBox attribute from svgs (#46) --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index d9d01b4..7c2ceb6 100644 --- a/index.js +++ b/index.js @@ -129,6 +129,7 @@ const getCommonLoaders = includes => [ loader: require.resolve('svgo-loader'), options: { plugins: [ + { removeViewBox: false }, { addAttributesToSVGElement: { attribute: 'focusable="false"' } } ] }