javascript-obfuscator / webpack-obfuscator

javascript-obfuscator plugin for Webpack
https://github.com/javascript-obfuscator/javascript-obfuscator
BSD 2-Clause "Simplified" License
870 stars 82 forks source link

works great! any chance this could also be used to obfuscate css? #70

Closed vesper8 closed 4 years ago

vesper8 commented 4 years ago

Happy to report this seems to work perfectly for obfuscating my vue-cli v4 project. Was super easy to configure and get working too.

Since I'm using Tailwind CSS as my main CSS framework now and as a result styles are easier than ever to rip and steal, I was wondering if this could also be used to obfuscate the css classes both in the html as well as in the css bundles?

On a side note, I did notice that obfuscating essentially doubles the size of all javascript files.. I guess this is normal and there's no way to lessen that is there?

Thanks for making and maintaining this!

sanex3339 commented 4 years ago

Hi. I have not any plans to support css. About code size, in the upcoming 0.25.0 release it will contain improved mangled identifier names generator. It will slightly decrease output code size. But anyway, with obfuscation code always will be larger than without obfuscation