Angular弹出项目,是否还需要angular.cli?(Angular ejected project, is there still need for angular.cli?)

编程入门 行业动态 更新时间:2024-10-23 01:55:58
Angular弹出项目,是否还需要angular.cli?(Angular ejected project, is there still need for angular.cli?)

角度弹出

在我弹出一个项目之后,我还需要在我的项目中使用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.

更多推荐

本文发布于:2023-08-05 07:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428937.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   还需要   项目   Angular   project

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!