v2.1.0
Added
- ac598f2 Add local webserver and
options.publicPath
option
Instead of using the page.goto(`data:text/html,${html}`)
approach of puppeteer/puppeteer#728 (comment) jsdom-screenshot
now starts its own webserver to serve the html
. This enables serving local assets for the screenshot. It further enables intercepting requests to local assets. See the updated README for more information.