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 sup开发者_如何学Cplying .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?
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.
精彩评论