doright
doright

Reputation: 296

changing the obfuscation level of GWT code

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.

Upvotes: 2

Views: 1455

Answers (1)

Sebastian
Sebastian

Reputation: 6067

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

Upvotes: 3

Related Questions