现有项目中的 Qooxdoo

发布于 2024-12-23 08:49:57 字数 289 浏览 3 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

病女 2024-12-30 08:49:57

您可以调整您的配置以包含所有(有趣的)qooxdoo 框架类。您基本上必须添加 qx.* 并希望在 build-script 作业中排除其下面的一些不需要的命名空间。例如,在 config.json 中添加类似以下内容:

"jobs": {
    "build-script" : {
        "include" : ["qx.*"],
        "exclude" : ["qx.test.*", "qx.dev.unit.*"]
    }
}

查看 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 the build-script job. E.g. in your config.json add something like:

"jobs": {
    "build-script" : {
        "include" : ["qx.*"],
        "exclude" : ["qx.test.*", "qx.dev.unit.*"]
    }
}

Have a look at the application/playground config in the SDK, the Playground app uses a similar approach.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文