From 394105b860bc84ca808454db5f5a800a7c60146a Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 11:35:14 +0100 Subject: Add options to svg loader --- packages/website/webpack.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'packages/website/webpack.config.js') diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js index 367aba48f..dfd4f1d08 100644 --- a/packages/website/webpack.config.js +++ b/packages/website/webpack.config.js @@ -57,7 +57,18 @@ const config = { }, { test: /\.svg$/, - loaders: ['react-svg-loader'], + use: [ + { + loader: "react-svg-loader", + options: { + svgo: { + plugins: [ + { removeViewBox: false } + ], + } + } + } + ] }, ], }, -- cgit