Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-exclude

exclude pages from gatsby

Travis Codecov license npm

usage

install

$ npm install --save gatsby-plugin-exclude

configure

gatsby-config.js

{
  resolve: 'gatsby-plugin-exclude',
  options: { paths: ['/app/**', '!/app/demo/*'] },
}

In this example, all paths prefixed by /app/ will be excluded, except for app/demo/.


Note: multimatch specifies * matches any number of characters, but not /, whereas ** does.

therefore to match /abc/123/xyz, /abc/** is the appropriate pattern, not /abc/*.


based on gatsby-plugin-create-client-paths

© 2024 Gatsby, Inc.