Is there a way to generate html report using lighthouse programmatically.
See original GitHub issueSorry if I missed this anywhere but I am trying to find how to generate the html using lighthouse using the example given in docs. https://github.com/GoogleChrome/lighthouse/blob/HEAD/docs/readme.md#using-programmatically
I could generate the html by calling lighthouse-cli directly but could not do it using above script. My opts
are:
const opts = {
chromeFlags: ['--show-paint-rects'],
output: 'html',
'output-path': './lighthouse-results.html',
'save-assets': true
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
An Introduction To Running Lighthouse Programmatically
One of the simplest ways to run Lighthouse is through Chrome's DevTools Lighthouse panel. If you open your site in Chrome and then...
Read more >Generating HTML report in gulp using lighthouse
The answer from @EMC is fine, but it requires multiple steps to generate the HTML from that point. However, you can use it...
Read more >Running Lighthouse Programmatically - The Publishing Project
The simplest example will run all Lighthouse reports for the given URL using the default options for Lighthouse. function ...
Read more >Actually Running Google Lighthouse Programmatically
The fastest way to run Lighthouse Batch programmatically is to use the -s method, shown below. Essentially the -s option allows you to...
Read more >Lighthouse overview - Chrome Developers
You give Lighthouse a URL to audit, it runs a series of audits against the page, and then it generates a report on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did it like this:
MIght be worth it to update the docs for this.
@patrickhulce thank you for that!
I’m still confused and I did it work in a hacky way. All I want is to save the HTML reports in a specific location. This is my solution but I would love feedback if there is a better way to do this.
Thank you!!