From ae8e2c8b0ee24a5b8919e6051e5a08125d296d05 Mon Sep 17 00:00:00 2001 From: Pedro Santos Date: Fri, 10 Aug 2018 15:28:45 +0100 Subject: [PATCH] fix: use the right plugins for inline svgs --- gatsby-node.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index 88bf20e4..ba144fb9 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -135,7 +135,13 @@ module.exports.modifyWebpackConfig = ({ config, program, stage }) => { config.loader('inline-svgs-2', () => ({ loader: 'svgo-loader', - test: /\.inline\.svg$/ + test: /\.inline\.svg$/, + query: { + plugins: [ + { removeDimensions: true }, + { cleanupIDs: false } + ] + } })) config.loader('inline-svgs-3', () => ({