Extend scope of hugo_stats.json

I’m very happy with the new postprocess function in Hugo, but i’m wondering how I can extend the scope of attributes it’s scanning.

In my templates i’m using alpine.js to add classes dynamically. Example:

<div @click.away="isOpen = false" x-show="isOpen" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 translate-y-1" x-transition:enter-end="opacity-100 scale-100"
                  x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 translate-y-1"
                  class="absolute z-20 -ml-4 mt-3 transform w-screen max-w-md lg:max-w-3xl bg-white">

Is there any setting so I can tell hugo to also include the classes from x-transition:enter-start, transition:leave-end e.t.c in hugo_stats.json?

Reference: https://gohugo.io/hugo-pipes/postprocess/

You currently cannot.

The current approach for Vue/Alpine style of class bindings are rather simple:

I must admit, I dit not think about Alpine’s transitions.