Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

changing the obfuscation level of GWT code

Tags:

gwt

I am trying to use the flag;

-style PRETTY as discussed here: http://www.gwtproject.org/doc/latest/FAQ_DebuggingAndCompiling.html

however its not obvious to me where I place that setting. I'm looking to send the 'PRETTY' code up to a parallel version on my live server.

I deploy directly from my IDE (Eclipse)

does it live in my .gwt.xml file?

thanks for any tips.

like image 747
doright Avatar asked Dec 31 '25 00:12

doright


1 Answers

If you use maven you can place it in your .pom file to not obfuscate the transpiled JS:

<properties>
    <gwt.compiler.style>PRETTY</gwt.compiler.style>
</properties>

For not obfuscating the CSS, use:

<set-configuration-property name="CssResource.style" value="PRETTY"/>

in your *.gwt.xml

like image 79
Sebastian Avatar answered Jan 06 '26 07:01

Sebastian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!