![]() Run: lighthouse -output json -output-path Open the top-right menu and click Save as JSON The list below explains how to get the JSON output, depending on what Lighthouse workflow you're using: The Lighthouse Viewer needs the JSON output of a Lighthouse report. The Lighthouse Viewer # Share reports as JSON Use the Lighthouse Viewer to view and share reports online. Lighthouse runs its audits against the currently-focused page, then opens up a new tab with a report of the results. The Lighthouse extension panelĬlick Generate report. ![]() After clicking, the Lighthouse menu expands. If not, open Chrome's extension menu and access it from there. It should be next to the Chrome address bar. In Chrome, go to the page you want to audit.Ĭlick the Lighthouse. Install the Lighthouse Chrome Extension from the Chrome Webstore. ![]() The DevTools workflow allows for testing local sites and authenticated pages, while the extension does not. Unless you have a specific reason, you should use the Chrome DevTools workflow rather than this Chrome Extension workflow. See Using programmatically for an example of running Lighthouse programmatically, as a Node module. To see all the options: lighthouse -help # Run the Node module programmatically ![]() The -g flag installs it as a global module.
0 Comments
Leave a Reply. |