exclude pages from gatsby
$ npm install --save gatsby-plugin-exclude
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