-
-
Notifications
You must be signed in to change notification settings - Fork 372
Closed
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The service worker only gets registered in production and when the https is used
What is the expected behavior?
I'd expect preact-cli to also register a service worker in development. On localhost, service workers are also supported without http, so why not? Web Fundamentals, MDN
If this is a feature request, what is motivation or use case for changing the behavior?
This would add the ability to test the service worker in development.
https://github.com/developit/preact-cli/blob/master/src/lib/entry.js#L3
chinchang and gnapse
Metadata
Metadata
Assignees
Labels
No labels