Skip to content

Commit 0ac8c4c

Browse files
authored
Merge pull request #35
Initial PWA
2 parents 0bb1dac + a289e4d commit 0ac8c4c

17 files changed

+375
-207
lines changed

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"maximumError": "8kB"
6868
}
6969
],
70-
"outputHashing": "all"
70+
"outputHashing": "all",
71+
"serviceWorker": "ngsw-config.json"
7172
},
7273
"development": {
7374
"optimization": false,

ngsw-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
3+
"index": "/index.html",
4+
"assetGroups": [
5+
{
6+
"name": "app",
7+
"installMode": "prefetch",
8+
"resources": {
9+
"files": [
10+
"/favicon.ico",
11+
"/index.csr.html",
12+
"/index.html",
13+
"/manifest.webmanifest",
14+
"/*.css",
15+
"/*.js"
16+
]
17+
}
18+
},
19+
{
20+
"name": "assets",
21+
"installMode": "lazy",
22+
"updateMode": "prefetch",
23+
"resources": {
24+
"files": [
25+
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
26+
]
27+
}
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)