0

I am rather new to lighthouse. I am using lighthouse from the Windows PowerShell with the command

lighthouse https://mywebsite.com/ --locale=es

I need to modify the HTML report that the tool generates and attach a screenshot of the webpage at the top of the report.

Is that possible?

Thanks

1 Answer 1

0

Yes, it's possible.

You can generate a Lighthouse report programmatically, take a screenshot with Puppeteer and inject the image in the generated HTML.

Here are some recipes on how to use Puppeteer and Lighthouse together, and here is an example that shows how to manipulate the HTML report generated by Lighthouse.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.