Fix registering sw
Angular cli issue: https://github.com/angular/angular-cli/issues/8515
It is an old issue but seems to be relevant again.
MR also adds service worker config to build.
Angular cli issue: https://github.com/angular/angular-cli/issues/8515
It is an old issue but seems to be relevant again.
MR also adds service worker config to build.