Closed wyattbiker closed 5 years ago
You could mess around with webpack and add it but I see no reason to bother. If you mean for protecting the code: Cutting out the source from the bundle and beautify it would still make a messy source code and for someone doing it it's probably a better idea to just code it from scratch. If you want to prevent cheating it's trivial to hack even an obfuscated javascript-based game.
I just looked up something this: https://github.com/javascript-obfuscator/javascript-obfuscator Maybe worth adding it as an option using the webpack plugins.
It's definitely doable but as I wrote, I don't see any reason why.
Is there a way to add obfuscation to this?
Thanks