Community Plugin
View plugin on GitHubgatsby-plugin-exclude
exclude pages from gatsby
usage
install
$ npm install --save gatsby-plugin-excludeconfigure
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