Skip to content

Improve the quality of website with Unlighthouse

Nataliia Makarenko edited this page Nov 26, 2024 · 3 revisions

image

Unlighthouse scans your entire site using Google Lighthouse, with a modern UI, minimal config and smart sampling. It helps to improve the quality of web pages.

Requirements:

Node 18.x or higher

Step 1. Run the command

Run the command below in your terminal. It will scan your site and generate a report.

npx unlighthouse --site <site> --disable-dynamic-sampling --output-path <path>

to see more options type:

npx unlighthouse --help

Note: By default Unlighthouse saves your reports in <./unlighthouse> folder or if you set this option.

Step 2. View reports in preferable format

e.g. image

Improve your analyse

To improve reports` analyse put data into one .csv-file.

  1. Download file "reports_to_csv.rb"
  2. Add file “reports_to_csv.rb” into root folder.
  3. In terminal move to root folder.
  4. Type ruby reports_to_csv.rb and press Enter.
  5. New file "unlighthouse_data_extanded_#.csv" will be created.
  6. Import .csv into Google Excel and perform analyse.

e.g. image