Skip to content

Commit 3f15b4c

Browse files
clementmasNataliaTepluhina
authored andcommitted
mention navigateFallback in the pwa docs (#4973)
1 parent 2ddcc65 commit 3f15b4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/core-plugins/pwa.md

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ file, or the `"vue"` field in `package.json`.
3131

3232
These options are passed on through to the underlying `workbox-webpack-plugin`.
3333

34+
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:
35+
```js
36+
navigateFallback: 'index.html'
37+
```
38+
3439
For more information on what values are supported, please see the guide for
3540
[`GenerateSW`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin#full_generatesw_config)
3641
or for [`InjectManifest`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin#full_injectmanifest_config).

0 commit comments

Comments
 (0)