Skip to content

Instantly share code, notes, and snippets.

View pattiereaves's full-sized avatar
🏠
Working from home

Pattie Reaves pattiereaves

🏠
Working from home
View GitHub Profile
@paceaux
paceaux / headless-screenshots_v2.js
Last active February 20, 2024 02:54
Improved command line options for headless screenshots in Chrome
/** Pre requisites
* MAC ONLY FOR RIGHT NOW! Not my fault. We have to wait for Headless Chrome to hit Windows users
1) Make an Alias to Chrome
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
2) Make Sure yarn is installed (it caches packages so you don't have to download them again)
`npm i yarn`
3) Use yarn to install dependencies: