GoogleChrome / lighthouse-ci

Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
Apache License 2.0
6.33k stars 633 forks source link

Run lighthouse on desktop application which are built using Chromium Embedded Framework (CEF) via node #944

Open ajitesh11 opened 9 months ago

ajitesh11 commented 9 months ago

Can we run lighthouse on desktop application which are built using Chromium Embedded Framework (CEF) Programmatically ? Via node for eg. If yes How? If yes, can we do that via lighthouse-ci cli (https://www.npmjs.com/package/@lhci/cli) too?

I did a lot of research and I stuck at a point where i realize EITHER i need to pass a url to lighthouse OR pass --collect.staticDistDir to tell Lighthouse CI where your HTML files are located.

In my case none of the above is possible because the url of application is embedded in a desktop application.

Yes i can run lighthouse on that url in the browser but my requirement is not to run in the browser but on the desktop application which we have built for the application.

Any lead or input in this regard will be greatly appreciated.

Shivam93937 commented 1 month ago

I have the same query, is there any way to run lighthouse in CEF containers programmatically??