开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜