-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Allow skipping specific browser downloads #823
Comments
Closing as a dupe of #812 |
@pavelfeldman This is not a dupe of #812, let me try to illustrate the problem better. Problem
SolutionAdd this to the top of downloadBrowser: if (process.env[`PLAYWRIGHT_SKIP_${browser.toUpperCase()}_DOWNLOAD`]) {
return;
} |
@jperl Yeah I agree, this is different. I don't like using ENV variables as an API for libraries. We tried this in Puppeteer with So instead we switched to programmatic browser downloads: every library that wished to use Puppeteer internally had to use Now, It looks like we don't currently expose browser downloads - let me fix it. |
Ok, I like that solution of depending on |
My library depends on
playwright
, and supports all the browsers playwright supports. However not all of my users want to download each browser.It would be nice if the end-user of my library could skip certain browser downloads by setting environment variables.
For example, if they only care about chromium they could do
PLAYWRIGHT_SKIP_FIREFOX_DOWNLOAD=true PLAYWRIGHT_SKIP_WEBKIT_DOWNLOAD=true npm install
The text was updated successfully, but these errors were encountered: