Skip to content
klynglabsPublic

About

Tailwind CSS v4 class obfuscation for Next.js and Vite.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

tailcloak

npm CI

Obfuscates Tailwind CSS v4 class names at build time. Each class string becomes one short name.

<!-- before -->
<main class="mx-auto flex max-w-2xl flex-col gap-6 p-8 md:p-16"></main>
<!-- after -->
<main class="tc_UwcxCM"></main>

Pre-1.0: options can still change between minor versions.

Install

Pick the package for your bundler:

Options, what gets rewritten and limitations are in tailcloak.

Development

bun install
bun run check
bun run e2e

check runs formatting, lint, typecheck and tests. e2e builds the apps in examples/ and verifies every class is obfuscated.

License

MIT

About

Tailwind CSS v4 class obfuscation for Next.js and Vite.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages