HTML5离线GWT APP [英] HTML5 Offline GWT APP

查看:90
本文介绍了HTML5离线GWT APP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用HTML5缓存清单和
本地存储来构建离线gwt应用程序,但为此,我需要构建清单文件
列出所有GWT生成的文件,对不对?
我可以在编译过程中执行此操作,还是在
的shell脚本中执行此操作更好?

I am trying to build a offline gwt app using HTML5 cache manifest and local storage, but to do that, i need to build the manifest file listing all the GWT generated files, right? Can i do this during the compile process or is it better to do this in a shell script?

推荐答案

这应该使用链接器完成,以便您的资源在编译时自动添加到清单中。我知道存在一个HTML5缓存清单链接器,因为GWT团队已经提到过几次,但我不知道源代码在哪里。

This should be done using a Linker, so that your resources are automatically added to the manifest at compile time. I know there exists an HTML5 cache manifest linker, since the GWT team has mentioned it a few times, but I don't know where the source is.

最接近的替代方案(可能是编写HTML5链接器的一个很好的起点)是齿轮脱机链接器。 Gears的离线清单与HTML5非常相似,因此可能需要改变几行才能使其正常工作。

The closest alternative (and probably a good starting point for writing an HTML5 linker) is the Gears offline linker. Gears' offline manifests are pretty similar to HTML5's, so it's probably a matter of changing a few lines to make it work.

还有一个关于使用GWT链接器让您的应用程序利用HTML5 Web Workers

这篇关于HTML5离线GWT APP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆