-
Notifications
You must be signed in to change notification settings - Fork 1
/
target-example.js
34 lines (34 loc) · 1.18 KB
/
target-example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'use strict';
module.exports = {
target:'https://example.com/',
fullpage:true,
// how long (in ms) to wait for the page, gives
// time for fades and other effects to run.
godelay:5000,
// https://gs.statcounter.com/screen-resolution-stats/desktop/north-america
// AND
// https://www.w3schools.com/browsers/browsers_display.asp
//
// in order of most to least popular
views:[
{width:1366, height:768},
{width:1920, height:1080},
{width:1280, height:800},
// don't duplicate 'width' in items
// {width:1280, height:1024},
{width:1024, height:768},
{width:1536, height:864},
// {width:1280, height:720},
{width:1440, height:900},
// extras, some smaller sizes...
{width:1100, height:900},
{width:825, height:900},
// can also select from Puppeteer's devices
{device:'Nexus 6P'}
],
// these are optional, and can be omitted or
// commented out. The folders in imgpath must
// exist prior to running the app.
imgpath:'./screenshots/', // default = ./ but MUST end with '/'!
imgextn:'.png' // default .png
};