funkybro
funkybro

Reputation: 8671

Can GWT be configured to output app logic in a .js file instead of .html?

I am aware of why GWT emits app logic in a .cache.html file.

But what if I knew my system would always be supplying .js files uncompressed?

Is there any way to make GWT output all the app logic in one .js file, or do I need to parse the .html file myself to achieve this?

Upvotes: 1

Views: 191

Answers (1)

Thomas Broyer
Thomas Broyer

Reputation: 64541

You can use the xs (deprecated, doesn't support DevMode) or xsiframe linkers:

<add-linker name="xsiframe" />

For non-browser environments, you'll have to provide a custom linker. There's one for Node.js at https://github.com/cretz/gwt-node for instance.

Upvotes: 1

Related Questions