Universal app: only build classic toolkit

痞子三分冷 提交于 2020-01-24 08:43:25

问题


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.

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.

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


回答1:


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.

you can build like this.

sencha app build -c classic.




回答2:


Edit the app.json file, and remove the section about the modern toolkit in the builds profile section; you can re-instate it when you're ready to build the modern part again.



来源:https://stackoverflow.com/questions/39074214/universal-app-only-build-classic-toolkit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!