角度弹出
在我弹出一个项目之后,我还需要在我的项目中使用angular.cli文件吗? 如果是, angular.cli上的哪些键仍然有用?
Angular ng eject
After I ejected a project, do I still need to have an angular.cli file in my project? If yes, which are the keys on the angular.cli that are still useful?
最满意答案
使用弹出功能后,您还需要@ angular / cli吗? 显然,之后您将不会使用CLI的所有功能。 你不应该(我不会)删除它,如果这是你要求的。 弹出后它仍然提供价值。
你应该继续使用它吗? 是的,因为您仍然可以在弹出后使用CLI从命令提示符生成代码。 弹出CLI项目实际上只会影响您提供服务,构建和测试应用程序的能力。
我有一个弹出的项目,我积极地使CLI版本保持最新,并在需要时继续使用它来支持新代码。 保持它是很好的。 我在这里看到一些问题/答案,给人的印象是弹出后你不能使用CLI,但事实是你仍然可以用它做很多事情。
Do you still need the @angular/cli after using the eject feature? Obviously, you will not be using all of the features of the CLI afterward. You should not (I would not) remove it, if that is what you are asking. It still offers value after an eject.
Should you keep using it afterward? Yes, because you can still use the CLI after ejection to generate code from the command prompt. Ejecting a CLI project really only effects your ability to serve, build, and test an application.
I have an ejected project that I actively keep the CLI version up to date, and continue to use it to scaffold new code when needed. It is nice to keep it around. I have seen some questions/answers here that give the impression that you cannot use the CLI after an eject, but the fact is you can still use it for many things.
更多推荐
发布评论