Skip to content

ng serve with service worker  #9869

Closed
@StephenFluin

Description

@StephenFluin

As a user, I would like to be able to test my service worker generation / scripts.

I can do this today with ng build --prod, but then I have to spin up my own server and manually rebuild each time. If I try running ng build --prod today, I get runtime errors because the service worker can't be found.

If ng build --prod would generate a service worker, this would risk breaking developer expectations (due to normal Service Worker behavior), but it would better match what a developer might expect from debugging a "production" build of their application, even through the refresh cycle would be at the mercy of their service worker.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions