File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export default class Story2sketch {
3232 symbolGutter = defaultSymbolGutter ,
3333 querySelector = "#root" ,
3434 verbose = false ,
35- stories
35+ stories,
36+ puppeteerOptions = { }
3637 } ) {
3738 this . output = output ;
3839 this . url = url ;
@@ -43,6 +44,7 @@ export default class Story2sketch {
4344 this . querySelector = querySelector ;
4445 this . stories = stories ;
4546 this . verbose = verbose ;
47+ this . puppeteerOptions = puppeteerOptions ;
4648
4749 // Sort viewports by width
4850 this . sortedViewports = Object . keys ( viewports )
@@ -63,7 +65,7 @@ export default class Story2sketch {
6365 }
6466
6567 async init ( ) {
66- this . browser = await puppeteer . launch ( ) ;
68+ this . browser = await puppeteer . launch ( this . puppeteerOptions ) ;
6769
6870 if ( ! this . stories || this . stories === "all" ) {
6971 if ( this . verbose ) {
You can’t perform that action at this time.
0 commit comments