Answer the question
In order to leave comments, you need to log in
Shuffle and rename html (css) classes?
There is an html site, you need to generate random class names and replace the current names with random ones, in CSS and HTML.
The structure should be preserved, you just need to replace the names.
Perhaps there is some ready-made service for this, so as not to write something of your own?
Answer the question
In order to leave comments, you need to log in
https://github.com/sndyuk/mangle-css-class-webpack...
https://www.freecodecamp.org/news/reducing-css-bun...
https://evilmartians.com/chronicles/ postcss-module...
But in general, there is not much point in this. First, repeated lines are well compressed with gzip and brotli. Secondly, the styles themselves will not go anywhere, you can still peep and "steal". The only real use case that comes to my mind is "neutral" class names that won't be cut by some AdBlock.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question