From 3f15b4cff7cd293f0b0af61a40f2c796c41b7411 Mon Sep 17 00:00:00 2001 From: clem Date: Sat, 21 Dec 2019 12:43:02 +0700 Subject: [PATCH 1/3] mention navigateFallback in the pwa docs (#4973) --- 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). From 7bc3cd7541569e4241a4045da4c59ef34dbc1bc8 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sat, 21 Dec 2019 13:44:06 +0800 Subject: [PATCH 2/3] docs: his -> their (#4976) --- docs/dev-guide/ui-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-guide/ui-api.md b/docs/dev-guide/ui-api.md index a742100d9e..1b78128bf0 100644 --- a/docs/dev-guide/ui-api.md +++ b/docs/dev-guide/ui-api.md @@ -146,7 +146,7 @@ See [Prompts](#prompts) for more info. The `data` object contains the JSON result of each config file content. -For example, let's say the user has the following `vue.config.js` in his project: +For example, let's say the user has the following `vue.config.js` in their project: ```js module.exports = { From 9e739074a4679e49083a2d047d93371688f90cf5 Mon Sep 17 00:00:00 2001 From: Jorge Moliner Date: Sun, 22 Dec 2019 11:41:56 +0100 Subject: [PATCH 3/3] docs: update example code (#4987) --- docs/core-plugins/pwa.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/core-plugins/pwa.md b/docs/core-plugins/pwa.md index d5a2d71e9b..0ca59be672 100644 --- a/docs/core-plugins/pwa.md +++ b/docs/core-plugins/pwa.md @@ -117,6 +117,13 @@ module.exports = { msTileColor: '#000000', appleMobileWebAppCapable: 'yes', appleMobileWebAppStatusBarStyle: 'black', + + // configure the manifest options + manifestOptions: { + display: 'landscape', + background_color: '#42B883' + // ...other Manifest options... + }, // configure the workbox plugin workboxPluginMode: 'InjectManifest',