Skip to content

Commit de6bdca

Browse files
committed
Chore: Improve build time - eliminate duplicate config
Signed-off-by: miacycle <184569369+miacycle@users.noreply.github.com>
1 parent 895ff7e commit de6bdca

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

gatsby-config.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,17 @@ module.exports = {
318318
// /^.*\/_unused\/.*$/, // regex for folders starting with _
319319
/\.(pdf|ai|svg)$/i, // files ending with .psd or .ai
320320
],
321-
defaults: {}
321+
defaults: {
322+
placeholder: "blurred",
323+
},
324+
},
325+
},
326+
{
327+
resolve: "gatsby-transformer-sharp",
328+
options: {
329+
checkSupportedExtensions: false, // suppress warning about childImageSharp being null
322330
},
323331
},
324-
"gatsby-transformer-sharp",
325332
{
326333
resolve: "gatsby-source-filesystem",
327334
options: {
@@ -344,20 +351,7 @@ module.exports = {
344351
},
345352
},
346353
"gatsby-plugin-image",
347-
{
348-
resolve: "gatsby-plugin-sharp",
349-
options: {
350-
defaults: {
351-
placeholder: "blurred",
352-
},
353-
},
354-
},
355-
{
356-
resolve: "gatsby-transformer-sharp",
357-
options: {
358-
checkSupportedExtensions: false, // suppress warning about childImageSharp being null
359-
},
360-
},
354+
361355
{
362356
resolve: "gatsby-plugin-manifest",
363357
options: {

0 commit comments

Comments
 (0)