reg-viz / storycap

A Storybook Addon, Save the screenshot image of your stories :camera: via puppeteer.
https://www.npmjs.com/package/storycap
MIT License
709 stars 89 forks source link

Anyway to force a reload on viewport resize on a per-story basis? #893

Open jscott-yps opened 4 months ago

jscott-yps commented 4 months ago

The puppeteer CLI option > doubles the screenshot time. We only have a couple of stories that would actually need this. Primarily because they hide/show UI on vue component mount depending on the screensize. When resizing the viewport they won't display.

In an ideal world we could do

screenshot: {
    reloadOnViewportChange: true
}