mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-13 06:23:18 +00:00
feat: install only Chromium browser
This commit is contained in:
@@ -117,10 +117,10 @@ func InitPlaywright() error {
|
||||
logger.Println("Initializing Playwright")
|
||||
var err error
|
||||
|
||||
// Install Playwright and browsers
|
||||
err = playwright.Install()
|
||||
// Install Playwright and Chromium browser
|
||||
err = playwright.Install(&playwright.RunOptions{Browsers: []string{"chromium"}})
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not install Playwright: %v", err)
|
||||
return fmt.Errorf("could not install Playwright and Chromium: %v", err)
|
||||
}
|
||||
|
||||
pw, err = playwright.Run()
|
||||
|
||||
Reference in New Issue
Block a user