You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/workbox.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,11 @@ workbox: {
23
23
24
24
**importScripts** (Array) - Additional scripts to be imported in service worker script. (Relative to `/`. Can be placed in `assets/` directory)
25
25
26
+
**offlineAssets** (String) - List of assets to precache, in case you need extra files precached other than the ones automatically processed (`_nuxt/*` etc) or you want to ensure assets used by your `offlinePage`. (Example: `['/offline.png']`)
27
+
26
28
**offlinePage** (String) - Enables routing all offline requests to the specified path. (Example: `/offline.html`)
27
29
28
-
**offlinePageAssets**(String) - List of offline page assets to precache (Example: `['/offline.png']`)
30
+
**Please note**that enabling `offlinePage` will disable `/.*` caching and will route all offline requests to the specified path. Nuxt assets are still precached as are the ones specified in `offlineAssets`.
29
31
30
32
**cachingExtensions** (String) - Loads and inserts the contents of the specified file path into the service worker script, below autogenerated calls to `workbox.precaching.*`. You may add as many extra calls as you want to this file.
0 commit comments