I have installed PWA to my Angular application by ng add @angular/pwa
and followed the all necessary steps.
To run PWA locally I have installed http-server
globally by npm i -g http-server
After building production by ng build --prod
, I ran http-server -o
from dist
folder but localhost is not working and throwing invalid response.
I have tried with different ports by http-server -p 5000
but it's not working.