Extend build process- parse pages

I need to build full text search though pages of my app which are mostly static. My idea is to use similar approach as Jekyll does.
So I need to extend build process which creates lookup index json files from my pages. How to extend build process to execute custom task?
Or is there any better solution how to do full text-search?

1 Like

Could you extend the build process at the end?