Open tamusjroyce opened 1 year ago
My use case: Inline Angular so it can be pre-loaded in puppeteer. When a request comes in through express endpoint, the browser will already be preloaded.
And I could do a bunch of sheet and javascript imports. But it is nicer, repeatable, and secure (I can remove --no-sandbox) if everything is just inlined.
Options seem to come before the callback Could you support inlined.promise returning html as well?
I'm not sure why. But when I run
npx run inliner ./index.html >> ./inline.html
I get an empty ./inline.html file. I am running in powershell (vscode on windows. meh.) and node 14.x. Not quite sure why async is returning early.Otherwise, this works great! Thank you!