0

Im regularly running the Lighthouse tool and getting a result for PWA.

I know I can untick the check on the chrome interface but wondering is there a way I can set my configuration to say "Not a PWA" so this check stops running?

This site is not designed to be a PWA and I'd like to just mark it as so and be done with it.

Evolve
  • 8,466
  • 11
  • 46
  • 58

1 Answers1

1

Using the browser it should remember your settings, so if you turn PWA test off it should be off for each run. Unfortunately if your browser keeps resetting this there isn't much you can do in the developer tools version of Lighthouse.

However if you are willing to install the Google Lighthouse Command Line Interface (CLI) then you have full control and can automate the process.

I wrote about the benefits of using the Lighthouse CLI here.

To run Lighthouse without the PWA check you would run something similar to the following:

lighthouse https://yoursite.com --only-categories=performance,accessibility,best-practices,performance,seo --output html --output-path ./reports/not-a-pwa-report.html

The key part being --only-categories= and then the tests you want to run.

The above example would output the HTML report to the specified path. All the options are listed on the linked Lighthouse page under CLI options.

Graham Ritchie
  • 16,554
  • 2
  • 18
  • 45