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

Commit

Permalink
fix: use the right plugins for inline svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Santos committed Aug 10, 2018
1 parent 10ec8b7 commit ae8e2c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => ({
Expand Down

0 comments on commit ae8e2c8

Please sign in to comment.