I’m currently saving HTML pages in my Playwright project with a custom script that packages assets as data strings. But it doesn’t always work very well.
I would love to be able to use the SingleFile abilities within a Playwright Page context. I could either pass a page object to SingleFile or load SingleFile scripts within the page context, then build the single file HTMl and save it.
Without this, I just keep trying to recreate this package which feels like an unnecessary duplication of effort.
I’m currently saving HTML pages in my Playwright project with a custom script that packages assets as data strings. But it doesn’t always work very well.
I would love to be able to use the SingleFile abilities within a Playwright Page context. I could either pass a page object to SingleFile or load SingleFile scripts within the page context, then build the single file HTMl and save it.
Without this, I just keep trying to recreate this package which feels like an unnecessary duplication of effort.