Skip to content

Commit 07e6c63

Browse files
authored
Merge pull request #51 from KJO-Tech/feature/config-pwa
Feature: config pwa
2 parents e488da5 + f178612 commit 07e6c63

20 files changed

Lines changed: 602 additions & 13379 deletions

angular.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4+
"cli": {
5+
"packageManager": "bun"
6+
},
47
"newProjectRoot": "projects",
58
"projects": {
69
"kjo-care-front": {
@@ -50,7 +53,8 @@
5053
"maximumError": "8kB"
5154
}
5255
],
53-
"outputHashing": "all"
56+
"outputHashing": "all",
57+
"serviceWorker": "ngsw-config.json"
5458
},
5559
"development": {
5660
"optimization": false,

bun.lock

Lines changed: 462 additions & 356 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ngsw-config.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
"/favicon.svg",
12+
"/index.csr.html",
13+
"/index.html",
14+
"/manifest.webmanifest",
15+
"/*.css",
16+
"/*.js"
17+
]
18+
}
19+
},
20+
{
21+
"name": "assets",
22+
"installMode": "lazy",
23+
"updateMode": "prefetch",
24+
"resources": {
25+
"files": [
26+
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
27+
]
28+
}
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)