Tailwind class sorting

Using the Tailwind features introduced in Hugo version .0.112.0, to what extent does Hugo support Tailwind’s class sorting?

If I read that article correct, that is a prettier plugin. I already use prettier with the Go template plugin:

I suspect that I could just add the class sorting plugin. This lives outside of Hugo and I don’t see why it shouldn’t just work.

Okay. I thought since the classes appear in the hugo_stats.json in alphabetical order that the CSS might not appear in the same order that Tailwind orders them in the CSS. It seems that’s not the case.

1 Like

No, this is about having an automated way to adjust your templates to get “optimal order” of the CSS classes.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.