gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to run SingleFile within a Playwright context

smithnanic opened this issue · comments

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 closing this issue because it's a duplicate of gildas-lormeau/single-file-core#4.