bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Run lighthouse locally

Open Maxim-Mazurok opened this issue 5 years ago • 3 comments

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.

Maxim-Mazurok avatar May 27 '20 05:05 Maxim-Mazurok

Another workaround is to run build with --skip-pwa-validation or --skipPwaValidation flag:

bubblewrap build --skip-pwa-validation

Maxim-Mazurok avatar May 27 '20 05:05 Maxim-Mazurok

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

andreban avatar May 27 '20 07:05 andreban

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!

Maxim-Mazurok avatar May 27 '20 07:05 Maxim-Mazurok

Closing as stale - the Lighthouse validation is no longer required.

andreban avatar Aug 01 '23 09:08 andreban