Angular 6:"app" 节采用新的 angular.json 格式

Angular 6: Section "app" in the new angular.json format

在Angular6中,我们可以在angular-cli.json的app部分指定不同的应用,在"Stories Multiples Apps".[=15=上可以看到]

我们如何在 angular.json 的新格式中实现此功能?也许在项目部分?请帮我举个例子。

这里有一个link到new format specification.

我做了一些测试,我可以说我理解这个功能,我在这里写信给任何有同样问题的人。

在过去的功能中,它可以是一个项目的不同应用程序。如果你想有更多的应用程序,你可以用命令生成它们:

ng generate application app-name

然后,您可以使用以下方法构建它:

ng build app-name

或者只是搭配:

ng serve app-name

在我的开发过程中,我用它为客户开发了一个应用程序,为管理员开发了另一个应用程序。