From e8d15c1a2cb17536fa25a935bbffc2f97e4484cf Mon Sep 17 00:00:00 2001 From: Kaue Machado Date: Sun, 6 May 2018 00:03:45 +0200 Subject: [PATCH] Add manifest.webmanifest to staticFileGlobs Signed-off-by: Kaue Machado --- packages/gatsby-plugin-offline/README.md | 5 ++++- packages/gatsby-plugin-offline/src/gatsby-node.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-offline/README.md b/packages/gatsby-plugin-offline/README.md index 33aa0d2c595fd..0e938287af73c 100644 --- a/packages/gatsby-plugin-offline/README.md +++ b/packages/gatsby-plugin-offline/README.md @@ -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, diff --git a/packages/gatsby-plugin-offline/src/gatsby-node.js b/packages/gatsby-plugin-offline/src/gatsby-node.js index dfdf0ebe408b9..0ee8d770ac7f1 100644 --- a/packages/gatsby-plugin-offline/src/gatsby-node.js +++ b/packages/gatsby-plugin-offline/src/gatsby-node.js @@ -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,