I am new to polymer
and I am trying to build a PWA
application. I followed their starter kit which can be viewed here. But I cant make the generated service-worker.js
work when i pass -P https
or -H 192.168.10.98
on polymer serve command. Although not passing the parameters makes the service-worker work without any errors.
This is how I follow the instruction in the way I understood them,
First I do polymer build
Then I copy the folder inside the build file with the es* bundle that i want.
Inside the copied folder I do
polymer serve
.
If I execute polymer serve alone, everything in service worker works fine,
But when i do polymer serve -P https
or polymer serve -H 192.168.10.98
the app gets loaded but without the PWA
service worker functionality which is resiliency in offline situation.
I am stuck with this problem for days and I will really appreciate any help regarding this