[Feature Request] Obfuscate Tailwind CSS classes
See original GitHub issueFor performance proposes, everything that can be made to improve final bundle size is welcome. Even better if automated.
As feature request, would be nice to obfuscate classes on production bundle. Using webpack-obfuscator, for example.
Example
Original code:
# index.vue
<div class="text-gray-500">Hey!</div>
# tailwind.css
.text-gray-500 { color: #888; }
Final code:
# index.html
<div class="a">Hey!</div>
# tailwind.css
.a { color: #888; }
Issue Analytics
- State:
- Created 3 years ago
- Reactions:18
- Comments:8
Top Results From Across the Web
[Feature Request] Obfuscate Tailwind CSS classes · Issue #240
As feature request, would be nice to obfuscate classes on production bundle. Using webpack-obfuscator, for example. Example. Original code: # ...
Read more >vite-plugin-tailwind-obfuscate - NPM Package Overview - Socket
A Vite plugin to obfuscate Tailwind CSS class when running on production. Package contains a reference to a license without a matching LICENSE ......
Read more >How to obfuscate Tailwind classes in a NextJs project ... - Reddit
How to obfuscate Tailwind classes in a NextJs project in production? : r/tailwindcss.
Read more >Content Configuration - Tailwind CSS
Configuring source paths. Tailwind CSS works by scanning all of your HTML, JavaScript components, and any other template files for class names, then...
Read more >Obfuscate Tailwind classes in a Laravel project - Medium
We're going to see how to obfuscate Tailwind classes, and CSS classes in general, in a Laravel project so that no one is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not stale
Anyone managed to do this?