Use page.setContent to load the HTML page instead of writing an HTML page and use page.goto
ggrossetie opened this issue · 1 comments
ggrossetie commented
It might be possible to use page.setContent
to load the HTML page: https://github.com/puppeteer/puppeteer/blob/v13.6.0/docs/api.md#pagesetcontenthtml-options
This strategy would allow to avoid writing an HTML file on disk.
Related: #130
ggrossetie commented
It only works when the HTML document does not contain any linked local ressources (even if the path is absolute). It's also not possible to refresh a preview 😞