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

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

问题描述

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

我完成了一个文件夹比较,该比较非常快速,并告诉我它们在该级别上有一些差异.我对这些差异不是很感兴趣.

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

解决方案

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

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.

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.

解决方案

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天全站免登陆