-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathdefaults.ts
54 lines (46 loc) · 1.03 KB
/
defaults.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { version as workboxVersion } from 'workbox-cdn/package.json'
import type { WorkboxOptions } from '../../types'
export const defaults: WorkboxOptions = {
// General
workboxVersion,
workboxURL: undefined,
importScripts: [],
autoRegister: true,
enabled: undefined,
// Config
config: {},
clientsClaim: true,
skipWaiting: true,
offlineAnalytics: false,
workboxExtensions: [],
// Precache
preCaching: [],
cacheOptions: {
cacheId: undefined,
directoryIndex: '/',
revision: undefined
},
cachingExtensions: [],
cleanupOutdatedCaches: true,
// Offline
offline: true,
offlineStrategy: 'NetworkFirst',
offlinePage: null,
offlineAssets: [],
// Runtime Caching
runtimeCaching: [],
routingExtensions: [],
cacheAssets: true,
assetsURLPattern: undefined,
pagesURLPattern: undefined,
// Sw
swTemplate: undefined,
swURL: undefined,
swScope: undefined,
swDest: undefined,
// Router
routerBase: undefined,
publicPath: undefined,
dev: undefined,
cacheNames: undefined
}