1.2.0 • Published 6 months ago

@dia03/lighthouse-batch v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Lighthouse Batch

I tried using both lighthouse-batch-parallel and multihouse, but they were slow and didn't generate the correct files. I've found another package called lighthouse-batch.

Inside the project, you'll find a file named ca-sites.txt or us-sites.txt. To manage URLs easily, simply add them one by one on separate lines within this file. As an example, I've included two URLs for your reference.

Steps

  1. Begin by installing the package globally:
npm install lighthouse-batch -g
  1. To perform US desktop analysis, execute the following command:
node run.js -f us-sites.txt -o '.lighthouseci/US/desktop' --params "--preset=desktop" --csv --html
  1. For US mobile analysis, run this command:
node run.js -f us-sites.txt -o '.lighthouseci/US/mobile' --csv --html

Please ensure that you are in the current directory.

This package typically runs in mobile mode by default. To assess websites in desktop mode, we can utilize the --params option to configure it for desktop evaluation. Additionally, we can export data in CSV and HTML formats using the --csv and --html flags. Although I believe there might be room for customization with the --params option, we'll need to inspect the package's code for a more thorough understanding.

Thank you

1.2.0

6 months ago

1.1.0

7 months ago

1.0.0

7 months ago