Skip to content

Commit

Permalink
[gatsby-source-filesystem] Ignore Bower components directory (#8830)
Browse files Browse the repository at this point in the history
This is a very small change to the `gatsby-source-filesystem` plugin to ignore `bower_components` directories by default. This is to avoid creating filesystem nodes for any dependencies installed with Bower. Although Bower usage is falling it is still in widespread use in older projects.
  • Loading branch information
i-like-robots authored and DSchau committed Oct 5, 2018
1 parent bf289f6 commit 8cb663f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-source-filesystem/src/gatsby-node.js
Expand Up @@ -134,6 +134,7 @@ See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/
`**/.npmignore`,
`**/.babelrc`,
`**/yarn.lock`,
`**/bower_components`,
`**/node_modules`,
`../**/dist/**`,
...(pluginOptions.ignore || []),
Expand Down

0 comments on commit 8cb663f

Please sign in to comment.