Skip to content

Commit

Permalink
feat: add pwa support
Browse files Browse the repository at this point in the history
  • Loading branch information
Wassim CHEGHAM committed Apr 23, 2018
1 parent a754d22 commit 2a7279a
Show file tree
Hide file tree
Showing 15 changed files with 195 additions and 182 deletions.
30 changes: 22 additions & 8 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@
"output": "/assets"
}
],
"styles": ["src/styles.css"],
"scripts": ["node_modules/algoliasearch/dist/algoliasearch.min.js"]
"styles": [
"src/styles.css"
],
"scripts": [
"node_modules/algoliasearch/dist/algoliasearch.min.js"
]
},
"configurations": {
"production": {
Expand All @@ -47,7 +51,8 @@
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
"buildOptimizer": true,
"serviceWorker": true
}
}
},
Expand Down Expand Up @@ -75,7 +80,9 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": ["styles.css"],
"styles": [
"styles.css"
],
"scripts": [],
"assets": [
{
Expand All @@ -94,8 +101,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
Expand All @@ -115,11 +127,13 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": ["**/node_modules/**"]
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"schematics": {}
}
}
27 changes: 27 additions & 0 deletions ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"index": "/index.html",
"assetGroups": [{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html"
],
"versionedFiles": [
"/*.bundle.css",
"/*.bundle.js",
"/*.chunk.js"
]
}
}, {
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**"
]
}
}]
}
Loading

0 comments on commit 2a7279a

Please sign in to comment.