Run lighthouse locally
Is your feature request related to a problem? Please describe. When building internally hosted PWA, there's no easy way to pass validation using PageSpeed API, since PWA is hosted locally.
Describe the solution you'd like It would be great to have ability to run lighthouse locally (using puppeteer/selenium, maybe?)
Describe alternatives you've considered An alternative would be to use something like ngrok in order to expose local port to the internet.
Another workaround is to run build with --skip-pwa-validation or --skipPwaValidation flag:
bubblewrap build --skip-pwa-validation
Thanks for filing this, @Maxim-Mazurok.
I've been considering using the Lighthouse library directly: https://www.npmjs.com/package/lighthouse. The reason is that I've seen some instability on the API we're currently using.
--skipPwaValidation is supported: https://github.com/GoogleChromeLabs/bubblewrap/tree/master/packages/cli#build
It actually can understand both cases: --skip-pwa-validation and --skipPwaValidation :)
Well, I'm ok with having this open until the API is stable enough, thanks!
Closing as stale - the Lighthouse validation is no longer required.