问题
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