现有项目中的 Qooxdoo
我的 qooxdoo 应用程序的优化版本有问题。问题是,我试图在现有的应用程序中使用 qooxdoo,该应用程序分布在许多 Javascript 文件中,并且结构相当复杂。为了集成 qooxdoo,我刚刚生成了一个应用程序并将其包含在我的 HTML 项目中并且它可以工作。但是,当我尝试执行以下操作:
./generate.py build
来生成库的优化版本时,生成器会优化我没有使用的 qooxdoo 类和小部件,即使我在我的项目中也是如此。我想生成一个具有“一切”的优化、缩小版本的 qooxdoo 库。有办法做到这一点吗?
I am having a problem with the optimized version of my qooxdoo application. The thing is, I am trying to use qooxdoo in an existing application spread across many Javascript files and has a fairly complicated structure. To integrate qooxdoo I just generated an application and included it in my HTML project and it works. However, when I try to do:
./generate.py build
to generate an optimized version of the library, the generator optimizes out qooxdoo classes and widgets which I am not using even though I am in my project. I want to generate an optimized, minified version of qooxdoo library with "everything". Is there a way of doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以调整您的配置以包含所有(有趣的)qooxdoo 框架类。您基本上必须添加
qx.*
并希望在build-script
作业中排除其下面的一些不需要的命名空间。例如,在 config.json 中添加类似以下内容:查看 SDK 中的
application/playground
配置,Playground 应用程序使用类似的方法。You can tweak your config to include all (interesting) qooxdoo framework classes. You basically have to add
qx.*
and will want to exclude some unwanted namespaces beneath that, in thebuild-script
job. E.g. in your config.json add something like:Have a look at the
application/playground
config in the SDK, the Playground app uses a similar approach.