loteoo / hyperstatic

Routing, prerendering, code splitting and prefetching for hyperapp
https://hyperstatic.dev/
MIT License
59 stars 5 forks source link

Middleware for prerender #34

Open mdings opened 3 years ago

mdings commented 3 years ago

Would it be possible to add some kind of middleware or hook to run transformations during prerender? I'm using penthouse for example to inline critical css in the page. I'm duplicating logic from hyperstatic currently in a separate node script which runs on render. Might be nice to have access to some kind of plugin system though. Any thoughts on this?