Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit ae8e2c8

Browse files
author
Pedro Santos
committed
fix: use the right plugins for inline svgs
1 parent 10ec8b7 commit ae8e2c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gatsby-node.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ module.exports.modifyWebpackConfig = ({ config, program, stage }) => {
135135

136136
config.loader('inline-svgs-2', () => ({
137137
loader: 'svgo-loader',
138-
test: /\.inline\.svg$/
138+
test: /\.inline\.svg$/,
139+
query: {
140+
plugins: [
141+
{ removeDimensions: true },
142+
{ cleanupIDs: false }
143+
]
144+
}
139145
}))
140146

141147
config.loader('inline-svgs-3', () => ({

0 commit comments

Comments
 (0)