diff --git a/gatsby-config.js b/gatsby-config.js index d0e452db..e2d54198 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -23,7 +23,13 @@ module.exports = { }, plugins: [ ...sources, - 'gatsby-plugin-sharp', + { + resolve: 'gatsby-plugin-sharp', + options: { + stripMetadata: false, + defaultQuality: 75 + } + }, 'gatsby-transformer-sharp', { resolve: 'gatsby-transformer-remark', diff --git a/gatsby-node.js b/gatsby-node.js index 577a5e9c..fc1110b2 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -8,6 +8,11 @@ const { } = require('./gatsby/createPages') const { generateJsonFeed } = require('./gatsby/feeds') +// https://github.com/gatsbyjs/gatsby/issues/6291#issuecomment-505097465 +const sharp = require('sharp') +sharp.simd(false) +sharp.cache(false) + exports.onCreateNode = ({ node, actions, getNode, createNodeId }) => { // Markdown files if (node.internal.type === 'MarkdownRemark') {