rustywind icon indicating copy to clipboard operation
rustywind copied to clipboard

Add ability to evaluate `tailwind.config.js` file if exists

Open praveenperera opened this issue 5 years ago • 0 comments

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 avatar Nov 29 '19 23:11 praveenperera

+1.

Spent hours debugging, turns out, it just configuration mistake. However, TailwindCSS CLI never know that its configuration is invalid https://github.com/tailwindlabs/tailwindcss-typography/issues/282#issuecomment-1226713985

azzamsa avatar Aug 28 '22 08:08 azzamsa