Manuk
Manuk

Reputation: 301

Can I obfuscate javascript build apps?

I try to build a javascript build on codenameone. But I still can see the class name in the built files set, from teavm.

Is there anyway to obfuscate the all class name in my package? I realize android build is obfuscated by default, not sure how is javascript build.

Kindly advice.

Upvotes: 1

Views: 79

Answers (1)

Derek Johnson
Derek Johnson

Reputation: 812

It's already obfuscated by default e.g. check out the restaurant demo from the demos section.

The JavaScript code is totally obfuscated:

https://www.codenameone.com/demos/Restaurant/teavm/classes.js

You can disable this thru the javascript.minifying=false build hint covered here.

Upvotes: 2

Related Questions