Skip to content

Commit

Permalink
Pwa (#65)
Browse files Browse the repository at this point in the history
* pwa

* feat: custom welcom page
  • Loading branch information
Jonbeckas authored May 15, 2023
1 parent 87c7077 commit eb0787d
Show file tree
Hide file tree
Showing 16 changed files with 363 additions and 24 deletions.
10 changes: 7 additions & 3 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/manifest.webmanifest"
],
"styles": [
"node_modules/@clr/ui/clr-ui.min.css",
Expand All @@ -39,7 +40,9 @@
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"configurations": {
"production": {
Expand Down Expand Up @@ -98,7 +101,8 @@
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/manifest.webmanifest"
],
"styles": [
"src/styles.scss"
Expand Down
30 changes: 30 additions & 0 deletions frontend/ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
]
}
}
]
}
Loading

0 comments on commit eb0787d

Please sign in to comment.