Angular 6 CLI -> how to make ng build build project + libraries

前端 未结 9 576
感情败类
感情败类 2020-12-31 01:58

So the question is pretty basic but I can\'t find it.

I created a new app through ng new my-project, followed by a ng g library my-library.

9条回答
  •  滥情空心
    2020-12-31 02:38

    I find and test this: https://github.com/angular/angular-cli/wiki/stories-create-library

    So instead ng build --prod you should use ng build my-lib --prod

提交回复
热议问题