6

I have a Custom Angular Library and I would like to customize the build of that Library using postcss.

Like the Angular Libraries are built using ng-packagr, I need to extend the rollup.config.js of ng-packagr to customize the build of my Library.

In fact, I would like to use postcss through rollup like is used here: https://www.learnwithjason.dev/blog/learn-rollup-css/

I saw in the documentation of ng-packagr that is possible to extend the rollup config: https://github.com/ng-packagr/ng-packagr/blob/master/docs/DESIGN.md#rollup-config

However, I didn't find any documentation or example on how to do that.

Does anybody know how to do that?

Can anybody provide me an example?

Thanks in advance.

German Quinteros
  • 1,870
  • 9
  • 33
  • Can you add more information what you tried to achieve what you are looking for. Any demo that you have done. If any please share the details so that I can contribute. I didn't the full context what you are looking for here. – Anoop Rajasekhara Warrier Apr 03 '20 at 04:11
  • Hi @AnoopRajasekharaWarrier , thanks for your response. I have just updated my question. Also, I have a more generic question that is related to this topic here: https://stackoverflow.com/questions/60937107/use-postcss-in-custom-angular-library Any help is more than welcome. Thanks !!! – German Quinteros Apr 03 '20 at 04:20
  • I commented here which is your duplicate question https://stackoverflow.com/questions/60937107/use-postcss-in-custom-angular-library – Gourav Garg Apr 04 '20 at 08:35
  • Could you say if you found a solution? – Pavel_K May 02 '22 at 11:23

0 Answers0