Skip to content

harryparkdotio/gatsby-plugin-exclude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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