Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Add note about extraDirsToCache option in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Delpoux authored and axe312ger committed Feb 26, 2019
1 parent 19ec25a commit f7d1644
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ These folders are cached by default:

## ⚙️ Configuration

If you need additionals folders to be cached, you can use the option `extraDirsToCache` to include one or multiple folders to Netlify cache:
If you need additionals directories to be cached, you can use the option `extraDirsToCache` to include one or multiple directories to Netlify cache:

```js
plugins: [
{
resolve: "gatsby-plugin-netlify-cache",
options: {
extraDirsToCache: ["extraDir", ".extraDotDir"],
extraDirsToCache: ["extraDir", ".extraDotDir", "extra/dir"],
},
},
]
```

> Note: the directory path is relative to the project root directory

0 comments on commit f7d1644

Please sign in to comment.