Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to evaluate tailwind.config.js file if exists #14

Open
praveenperera opened this issue Nov 29, 2019 · 0 comments
Open

Add ability to evaluate tailwind.config.js file if exists #14

praveenperera opened this issue Nov 29, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@praveenperera
Copy link
Member

praveenperera commented Nov 29, 2019

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
@praveenperera praveenperera added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed and removed good first issue Good for newcomers labels Nov 29, 2019
@avencera avencera deleted a comment from azzamsa Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant