Skip to content
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

[Feature]: create a puppeteer-lite package #12460

Closed
casesolved-co-uk opened this issue May 18, 2024 · 1 comment
Closed

[Feature]: create a puppeteer-lite package #12460

casesolved-co-uk opened this issue May 18, 2024 · 1 comment
Labels

Comments

@casesolved-co-uk
Copy link

Feature description

When using puppeteer, both a chrome and chrome-headless-shell browser are downloaded which take up 356MB and 189MB respectively, i.e. more than 0.5GB of space.

It would be brilliant for headless applications to have a puppeteer-lite package that only includes chrome-headless-shell.

If there is a simple way to do this in yarn by including puppeteer-core and some other command I would be interested to hear.

Related:
#10736
https://developer.chrome.com/blog/chrome-headless-shell

@OrKoN
Copy link
Collaborator

OrKoN commented May 21, 2024

You can set the env var PUPPETEER_SKIP_CHROME_DOWNLOAD to true (or the config option skipChromeDownload) to only download the headless shell. For the opposite, there is a PUPPETEER_SKIP_CHROME_HEADLESS_SHELL_DOWNLOAD variable.

Alternatively, you can use puppeteer-core and @puppeteer/browsers to manage the browser downloads.

@OrKoN OrKoN closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants