Service worker not found on localhost

Hi,

I wish to debug the service-worker.js file within the “src” folder
Ionic cannot serve the service worker file because localhost is not https !

Error TypeError: Failed to register a ServiceWorker for scope (‘http://localhost:8100/’) with script (‘http://localhost:8100/service-worker.js’): A bad HTTP response code (404) was received when fetching the script.

Each time i wish to debug the service worker file i have to run “ionic build” so it takes very long time for development

For example if i debug home.page.ts it reloads automaticaly but if i wish to debug service worker file i have to compile and rebuild to www folder then serve the www folder …The process is too long !
I wish find a solution for chrome to allow files from http origin