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

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

问题描述

我正在尝试使用 HTML5 缓存清单和本地存储,但要做到这一点,我需要构建清单文件列出所有 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 离线链接器.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天全站免登陆