dotnet cli 和 angular cli 基本项目模板有什么区别? [英] What are the differences between a dotnet cli and a angular cli basic project template?

查看:31
本文介绍了dotnet cli 和 angular cli 基本项目模板有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 dotnet new angularng new 生成一个新的 Angular 4 项目时,这两个生成的项目之间的主要区别是什么?

When I generate a new Angular 4 project using dotnet new angular and ng new, what are the chief differences between the two generated projects?

我做了一个非常快的文件夹比较,并告诉我他们在那个级别上有一些差异.我对这些差异不是很感兴趣.

I have done a folder compare which was very quick and told me they have a few differences on that level. I am not very interested in those differences.

我只对少数几个高级差异感兴趣.一个例子是在一个项目而不是另一个项目中拆分一个模块进行预渲染.鉴于脚手架项目的规模,差异列表不会超过 10 个,所以我敢肯定,在这里询问高层差异并不是一个太宽泛的问题.

I'm only interested in the handful of high-level differences. An example is splitting a module for pre-rendering in one project and not the other. Given the size of the scaffolded projects, a list of differences wouldn't be more than say 10, so I'm sure asking about the high-level difference is not too broad a question here.

推荐答案

我注意到的一个区别是 dotnet new angular 将使用 webpack.json 创建项目,而 ng new 将使用 .angular-cli.json 创建

One difference that I noticed is that dotnet new angular will create project with webpack.json, whereas ng new will create with .angular-cli.json

这篇关于dotnet cli 和 angular cli 基本项目模板有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆