仅构建经典工具包

仅构建经典工具包

本文介绍了通用应用程序:仅构建经典工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从头开始创建通用应用程序.首先是经典应用程序,将来是现代应用程序.我已经使用Cmd生成了应用.

I have to create a universal app from scratch. First the classic app, and at some point in the future, the modern app. I have generated the app using Cmd.

我已经实现了经典应用程序所需的基础知识,将所有可以在现代应用程序中重用的内容都分解了,并将其放入共享目录中.问题在于,现在,当我使用Cmd进行编译时,我会得到缺少依赖项的错误信息(因为仅在经典应用程序中实现了现代应用程序中缺少了视图,但共享代码中是必需的).

I have implemented the basics I need for the classic app, split off everything that can be reused in the modern app and put it into the shared directory. The problem is that now, when I compile with Cmd, I get the error that dependencies are missing (because views are missing in the modern app that I have implemented for classic only, but are required in shared code).

经典应用程序可以编译找到,而现代应用程序无法编译,并且如果经典应用程序构建过程中出现错误,则没人会注意到,因为现代应用程序会抛出错误.

The classic app compiles find, but modern doesn't, and if there are ever errors in the classic app build process, no one will notice, because modern throws errors.

我可以告诉命令行中的Cmd只编译经典工具包吗?

Can I tell Cmd on the command line to only compile the classic toolkit?

推荐答案

在ExtJS 6中,我们可以以类似的方式分别为经典和现代生成应用程序,可以为经典和现代分别构建应用程序.

In ExtJS 6 we can generate app for classic and modern separately in a similar fashion we can can build app separately for classic and modern.

您可以这样构建.

sencha app build -c classic.

这篇关于通用应用程序:仅构建经典工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 03:50