Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is GWT compiled JavaScript obfuscated or only minified?

Tags:

javascript

gwt

So, as the title says, when GWT compiles Java into JavaScript, is the result just minified, or is it obfuscated also?

like image 575
Henrik Paul Avatar asked Apr 21 '26 18:04

Henrik Paul


1 Answers

According to the GWT FAQ the code is obfuscated, but they state that "This is partly done to protect the intellectual property of the application you develop, but also because obfuscation reduces the size of the generated JavaScript files". I'm not sure if this is true obfuscation or just variable/method renaming and stripping of whitespaces. A "true" obfuscation might actually make the code larger than the original code.

like image 78
Kim L Avatar answered Apr 24 '26 07:04

Kim L