Get custom sorter by evaluating tailwind.config.js file
Features
- Pass with
--tailwind-sorter can accept value (value would be path to tailwind-config.js
- If value not passed in look for
tailwind.config.js somewhere within the home directory
- Use
postcss to evaluate file, get classes from file and use that order
Implementation
- Build up
HashMap of classes from running regex on evaluated file
- Save HashMap to disk using
serde and bincode
- Check
tailwind.config.js metadata to see if new HashMap should get created
Get custom sorter by evaluating tailwind.config.js file
Features
--tailwind-sortercan accept value (value would be path totailwind-config.jstailwind.config.jssomewhere within the home directorypostcssto evaluate file, get classes from file and use that orderImplementation
HashMapof classes from running regex on evaluated fileserdeandbincodetailwind.config.jsmetadata to see if newHashMapshould get created