SECURING CSS CODE

How to secure and protect the css code from "source code"? Like when you click the stylesheets file from the html you will be redirected to minified css code
1 Reply
Jochem
Jochem13mo ago
minification is something that's done by a build tool, there's plugins for vite that minify and inline your css it's not a security measure though, it's done for network performance reasons minified JavaScript is harder to read (still not impossible, just a bit of a pain), but minifying css barely does anything for its legibility. Usually you use the inspector anyway and that will still just show you which properties are applied to which element not to mention that CSS minification has a limited effect on performance too. All you can shorten is the class names and IDs in your selectors, and remove a liittle bit of whitespace
Want results from more Discord servers?
Add your server