This commit is contained in:
Haoqun Jiang
2019-12-28 20:54:27 +08:00
parent 95ae2a1eb2
commit 3b7227d544
26 changed files with 100 additions and 73 deletions
-12
View File
@@ -31,11 +31,6 @@ 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).
@@ -117,13 +112,6 @@ 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',
+2 -2
View File
@@ -23,10 +23,10 @@ If you want to debug your tests via the Node inspector, you can run the followin
```sh
# macOS or linux
node --inspect-brk ./node_modules/.bin/vue-cli-service test:unit
node --inspect-brk ./node_modules/.bin/vue-cli-service test:unit --runInBand
# Windows
node --inspect-brk ./node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit
node --inspect-brk ./node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit --runInBand
```
## Configuration