-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
40 lines (40 loc) · 853 Bytes
/
package.json
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
{
"name": "example",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "parcel src/index.html --public-url /",
"build": "parcel build --out-dir build src/index.html --public-url /"
},
"devDependencies": {
"parcel-bundler": "^1.12.3",
"parcel-plugin-sw-cache": "+"
},
"_cache": {
"strategy": "inject",
"swSrc": "./src/sw.js",
"swDest": "service-worker.js"
},
"cache": {
"swDest": "service-worker.js",
"runtimeCaching": [
{
"urlPattern": [
"https://cors-anywhere.herokuapp.com/https://www.unixtimestamp.com"
],
"handler": "networkFirst"
},
{
"urlPattern": "https://raw.githubusercontent.com/parcel-bundler/website/01a1f7dd/src/assets/[email protected]",
"handler": "cacheFirst",
"options": {
"cacheableResponse": {
"statuses": [
0
]
}
}
}
]
}
}