Skip to content

Commit

Permalink
mention navigateFallback in the pwa docs (#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
clementmas authored and NataliaTepluhina committed Dec 21, 2019
1 parent 2ddcc65 commit 3f15b4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/core-plugins/pwa.md
Expand Up @@ -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).
Expand Down

0 comments on commit 3f15b4c

Please sign in to comment.