简体   繁体   English

我需要在angularjs 4上使用grunt吗?

[英]Do i need to use grunt with angularjs 4?

我有一个角度为4的项目,当我运行ng服务时,它会自动创建文件包,因此在这种情况下,我需要在项目中使用grunt吗?

No you don't, if you're using Angular Cli then that's all you need. 不,您不需要,如果您使用的是Angular Cli,那就足够了。 You can use task runners for other bits like deploying etc but for the building and running of Angular - the CLI has it all. 您可以将任务运行程序用于部署等其他工作,但可以用于Angular的构建和运行-CLI具备了所有功能。

angular 2 and angular 4 manages this thing already, but through angular-cli. 角2和角4已经通过Angular-cli处理了这个问题。 some of the files already use the main.js and polyfill.js etc. 有些文件已经使用了main.js和polyfill.js等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM