@dia03/lighthouse-batch
v1.2.0
Published
Generate lighthouse reports for one or more websites
Downloads
9
Readme
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
- Begin by installing the package globally:
npm install lighthouse-batch -g
- 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
- 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.