简体   繁体   中英

Using multiple custom angular builders

I have been using the ng-cli-hooks custom builder for quite some time to inject the CSP into the index.html file and generating a custom webpack config.

Now I am looking into @ngx-env/builder to allow environment variables to be injected on build.

But how can I use two or more custom builders? I guess there is no setting in angular.json , where I can simply add more than 1 builder, because my search about this has turned up nothing.

But would it be possible to create an own custom builder which then imports functionality from the 2 other builders?

Thank you!

I am still using ng-cli-hooks builder and incorporated the functionality of @ngx-env/builder into my custom webpack config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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