Enable "service_worker" in development environment

How do I enable the “service_worker” in development?

I’ve setup the development environment for core and the frontend. This all works, but I cannot figure out how to enable the service_worker (disabled in development). That’s where I want to test changes …