Simple PWA sample from this tutorial.
npm i
npm start
Necessary to complete all PWA requirements locally
- Install openssl
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -config localhost.cnf
- Install
cert.pem
in Chrome as a Trusted Root Certification Authority
npm run lighthouse
or npm run lighthouse:ssl
(after following Local SSL steps above, ports 80
and 443
must be available)
Ctrl-C to halt dev server
View ./lighthouse/report.html
for report output.