Home App Docs Blog Github

Custom Angular Components disappearing when built for production

Hi Guys, Im using Angular Material Components in my project. They work fine. If I do a production build of my app and deploy it the components disappear from my UI.

ng build:

ng build --configuration production:

In my angular.json I can pin point this down to the optimisation:true flag. If I set this to true my components disappear. If I set this to false my components reappear:

Angular Version:
image

Hi @_CC :wave:

Can you send us a code reproduction?