#Post-Processing ?

11 messages · Page 1 of 1 (latest)

fair lagoon
#

Is it possible to Post-Process the output html once it has been rendered by Astro ? Some of the automated changes that I want to add require knowing the content of the file. I could do it via client-side javascript, but It'd cause an unnecessary performance since it could be a static page instead.

stark vaporBOT
#
No-one around right now?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

fair lagoon
#

Still unanswered

viscid pilot
#

What do you want to add or do after post processing mby its possible another way?

wispy flare
#

Do you want to do it at runtime or build time? If it's build time, write an integration and use node apis like path and fs. If it's at runtime, I think you can leverage middlewares, I made some experiments here https://github.com/florian-lefebvre/astro-capo/blob/main/packages/astro-capo/src/middleware.ts

GitHub

Capo.js integration for Astro. Contribute to florian-lefebvre/astro-capo development by creating an account on GitHub.

fair lagoon
fair lagoon
wispy flare
fair lagoon
#

You mean creating an integration that makes use of this ?

fair lagoon
echo rose