1.0.3 • Published 3 years ago

tailwind-apply-cli v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

tailwind-apply-cli

A nodejs cli that generates a tailwind.css classes with @apply for most reused classStrings and replaces them in your html or templates

Installation

npm i tailwind-apply-cli

Usage

npx twapply <glob_pattern>

Example

This will generate className and tailwind.css for all class strings defined in the .js and .html files in current directory and its child directories

npx twapply "./**/*.(jsx|html)"

Sample input/output

Before

Before

After

after

Demo

demo

License

MIT