Repository navigation
What's Changed
- ✨
tailwindClassOrderoption — configurable class ordering through buckets (#5).
Priority-based matching: explicit{pattern}buckets always win over"unknown"/"tailwind"catchalls, regardless of position in the config. Bucket order in the config controls output order only. Value is a string — path to a.js/.jsonfile or a JSON-encoded array. See docs/options.md.
Typical use cases:- Push
js-*hooks (or any behaviour-only markers) to the end of the class list. - Keep BEM modifiers next to the base class (
icon icon--check-circle) so they stay grouped even when the base class is a known Tailwind utility and the modifier isn't. - Pull component-like utilities (
h[1-6], multi-property utilities) up front. - Separate project-specific class families from generic Tailwind utilities.
- Push
- 🐛 Fix
n:classternary branches containing PHP concatenation (#5).
A branch like$x ? 'foo bar' . $y->method()used to be split on whitespace and fed to the class sorter — the. $y->method()fragment ended up in the middle of the class list, breaking the template. Conditional branches that aren't plain single-quoted strings are now treated atomically. - 🐛 Fix
normalize-barrierscollapsing newlines between sortablen:classtokens (#5).
Multi-linen:classlayouts (one token per line) had their newlines collapsed into a single-space,separator after sorting. Newlines in the original input are now preserved; only horizontal-only separators still collapse to,.
Full Changelog: 0.5.0...0.6.0