Skip to content

frostyandy2k/browser-screenshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshots Maker

vercel/pkg#204

# Compile the app like normal
pkg -t host --out-path dist index.js

# Copy chromium to the dist folder
mkdir -p dist/puppeteer/ui/dist/node_modules/puppeteer/
cp -R node_modules/puppeteer/.local-chromium dist/puppeteer/ui/dist/node_modules/puppeteer/.local-chromium

# Optionally rename index to index.js
mv dist/index dist/index.js

# Copy puppetter module if you get an error due to the dynamic require and remove chromium
mkdir -p dist/node_modules/puppeteer
cp -R node_modules/puppeteer/ dist/node_modules/puppeteer/
rm -rf dist/node_modules/puppeteer/.local-chromium

# Create output directory
mkdir dist/screenshots

About

Take screenshots of Web Pages

Resources

Stars

Watchers

Forks

Packages

No packages published