tailwind-apply-cli

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i tailwind-apply-cli

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

23.5 kB

Total Files

24

Last publish

Collaborators

  • nikhil.001mehta