-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable the emulatedUserAgent? #73
Comments
One workaround would be to create a configuration file for use with lighthouse. For example, a file called config.js could be created with (update for your requirements):
Then this would be called like this: More details on lighthouse configuration can be found here: https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md |
Thanks for your suggestion. I was sucessed with config file. But I have another question, how to run sites.txt for many tinmes with lighthouse-batch? for example, how to run "url" 5 times? |
You can create a file containing a list of URLs separated on new lines and then run a command like |
emmm...My sites.txt cotain 60 urls, but i need to run them 5 times to get the |
I use lighthouse-batch -s <url1,url2> --params "--chrome-flags="--screenEmulation.disable --screenEmulation.mobile=false --screenEmulation.width=1350 --screenEmulation.height=940 --no-emulatedUserAgent"" --html ./report.html
but the device has always been emulation device.
The text was updated successfully, but these errors were encountered: