Skip to content

Commit 895ff7e

Browse files
authored
Merge pull request #7198 from layer5io/leecalcote/config/gatsby-plugin-sharp
chore: enhance gatsby-plugin-sharp to ignore the integrations collection
2 parents c0cded9 + 81b3108 commit 895ff7e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

gatsby-config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,19 @@ module.exports = {
308308
name: "collections",
309309
},
310310
},
311-
"gatsby-plugin-sharp",
311+
{
312+
resolve: "gatsby-plugin-sharp",
313+
options: {
314+
ignorePathRegex: [
315+
// /originals\//, // any path containing /originals/
316+
/src\/collections\/integrations\//,
317+
// /legacy/, // containing "legacy"
318+
// /^.*\/_unused\/.*$/, // regex for folders starting with _
319+
/\.(pdf|ai|svg)$/i, // files ending with .psd or .ai
320+
],
321+
defaults: {}
322+
},
323+
},
312324
"gatsby-transformer-sharp",
313325
{
314326
resolve: "gatsby-source-filesystem",

0 commit comments

Comments
 (0)