Wednesday, April 20, 2016

Re: Compile a Java application into a single JavaScript file?

Thanks Greg, 

<add-linker name="sso"/>

did the trick.


On Monday, December 14, 2015 at 3:13:56 AM UTC-5, Greg wrote:
You could use Single Script Linker instead of default Cross Site IFrame Linker by adding this into your module.gwt.xml:

<collapse-all-properties/>
<add-linker name="sso"/>

You have to collapse all properties because sso linker doesn't generate permutation selection script. After compilation you should get single js file which contains all the logic for different browsers / languages etc. Alternatively you could explicitly specify properties but it would mean you would get js file for single browser / language.

On Sunday, December 13, 2015 at 2:58:21 AM UTC+1, Michael Zhou wrote:
I have used GWT to compile a Java application (Google's Closure Compiler) into a GWT application.
Currently, GWT outputs a .cache.js file and a .nocache.js file. I wonder if it's possible to output a single .js file instead of two?
We might switch to J2CL when it's ready, but just in case it's possible to do so with GWT 2.8.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment