Skip to main content
View plugin on GitHub
See starters using this

gatsby-plugin-archives

Build Status Current npm package version

Gatsby plugin for ignoring files and directories on build.

Installing

npm install --save gatsby-plugin-archives

Usage

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-archives`,
    options: {
        // Files and directories to exclude
        // Default: /archive/i
        exclude: [/(archive|templates)/i, /example-page.js/],
        
        // Only archive pages in production
        // Default: false
        productionOnly: true,

        // Log when pages are archived
        // Default: false
        verbose: true,
    },
  },
]

License

MIT © Hutson Inc


Docs
Tutorials
Plugins
Blog
Showcase