1.0.2 • Published 5 years ago

gatsby-plugin-exclude v1.0.2

Weekly downloads
5,150
License
MIT
Repository
github
Last release
5 years ago

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