From c53b0c8c88de16cf65e340e9a1cadde35791ab38 Mon Sep 17 00:00:00 2001 From: clem Date: Wed, 18 Dec 2019 17:40:29 +0700 Subject: [PATCH] mention navigateFallback in the pwa docs --- docs/core-plugins/pwa.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/core-plugins/pwa.md b/docs/core-plugins/pwa.md index abf24578b9..d5a2d71e9b 100644 --- a/docs/core-plugins/pwa.md +++ b/docs/core-plugins/pwa.md @@ -31,6 +31,11 @@ file, or the `"vue"` field in `package.json`. These options are passed on through to the underlying `workbox-webpack-plugin`. + If you're using the App Shell pattern with the `GenerateSW` mode, you can configure your entry point like this to make sure all your pages load offline: + ```js + navigateFallback: 'index.html' + ``` + For more information on what values are supported, please see the guide for [`GenerateSW`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin#full_generatesw_config) or for [`InjectManifest`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin#full_injectmanifest_config).