How to get Puppeteer folder smaller if only use "Evaluate Javascript" function #2339
Unanswered
ArcaneSoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to get Puppeteer(version 12.0.0) folder "chrome-win64" smaller when deploy. Below is the Puppeteer code used in my project. Can someone tell me which files could I remove safely?
using (var browser = await Puppeteer.LaunchAsync(new LaunchOptions
{
Headless = true,
ExecutablePath = executablePath.FullName,
Timeout = 0
}))
using (var page = await browser.NewPageAsync())
{
await page.GoToAsync("file://" + inputEmailHtml.FullName, WaitUntilNavigation.DOMContentLoaded); //Remove the timeout
string js = File.ReadAllText(jsFile.FullName);
return await page.EvaluateFunctionAsync(js);
}
Beta Was this translation helpful? Give feedback.
All reactions