Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Service WorkerΒ #433

@qzmfranklin

Description

@qzmfranklin

Hi,

My goal is to enable service worker in a Bazel + Angular project.

Currently, the only (useful) piece of info I have found is this:

ng add @angular/pwa --project *project-name*

But it does not tell me what code to write and look for.

I ran the command in a small project and tried porting it back to my bazel project. There are quite a few problems here and there. I feel like bumping into issues left and right, without a clear clue of what's happening.

Also, I tried using the native service worker API. Looks like angular intercepts the fetch events.

Is there any other documentation on the internal workings (not using the ng cli) on the Angular service worker?

For your info, I was able to get pass ngsw-worker.js and ngsw.json (hard to dig them out though). I noticed the manifest.json too. But I cannot find out how to write it myself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions