Crates.io | not-tailwind |
lib.rs | not-tailwind |
version | 0.1.7 |
source | src |
created_at | 2024-03-26 09:49:55.555058 |
updated_at | 2024-03-26 09:49:55.555058 |
description | A tool for shortening css classes |
homepage | https://github.com/uros-5/not-tailwind |
repository | https://github.com/uros-5/not-tailwind |
max_upload_size | |
id | 1186137 |
size | 120,458 |
Shorten those long TailwindCSS classes
This is your HTML in development:
<div class="text-red-600 px-2 bg-green-200 md:text-md lg:text-lg xl:text-xl custom-font dark:text-green-200 dark:bg-red-500">
Hello World
</div>
And here is in production:
<div class="c b a g h i custom-font f d">
Hello World
</div>
Configuration(not-tailwind.toml):
html_dir = ["web/src/templates"]
css_dir = ["web/src/css"]
js_dir = ["web/src/js"]
assets_dir = ["web/src/svg"]
output_dir = "prod"
cargo install --path=. --force