Skip to content

Commit

Permalink
Add manifest.webmanifest to staticFileGlobs (#5300)
Browse files Browse the repository at this point in the history
Signed-off-by: Kaue Machado <kaumac@gmail.com>
  • Loading branch information
kaumac authored and KyleAMathews committed May 7, 2018
1 parent 56b893f commit 1acbc3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby-plugin-offline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ and AppCache setup by changing these options so tread carefully.
```javascript
const options = {
staticFileGlobs: [
`${rootDir}/**/*.{js,woff2}`,
`${rootDir}/**/*.{woff2}`,
`${rootDir}/commons-*js`,
`${rootDir}/app-*js`,
`${rootDir}/index.html`,
`${rootDir}/manifest.json`,
`${rootDir}/manifest.webmanifest`,
`${rootDir}/offline-plugin-app-shell-fallback/index.html`,
],
stripPrefix: rootDir,
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-plugin-offline/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports.onPostBuild = (args, pluginOptions) => {
`${rootDir}/app-*js`,
`${rootDir}/index.html`,
`${rootDir}/manifest.json`,
`${rootDir}/manifest.webmanifest`,
`${rootDir}/offline-plugin-app-shell-fallback/index.html`,
],
stripPrefix: rootDir,
Expand Down

0 comments on commit 1acbc3e

Please sign in to comment.