config ngSW Routing
Opened this issue · 2 comments
web-dave commented
- generate a
ngsw-manifest.json
- add it to apps.0.assets
- config your routes in your
ngsw-manifest.json
- build your app and try the routes
web-dave commented
.angular-cli.json
{
...
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico",
"ngsw-manifest.json" // <=
],
...
web-dave commented
ngsw-manifest.json
{ "routing": { "index": "/index.html", "routes": { "/": { "match": "exact" }, "/books": { "match": "prefix" }, "/about": { "match": "prefix" } } } }