Is there some way to leave out the components/parts of code of my choice at build time for the production build in Angular2/4?
I have an app that has an admin tool that I use locally. I would like this admin tool left out of the production version of the app. I can - of course - comment the code each time I do a production build, but is there some more elegant solution? Like conditional build on certain parts of the code?
I'm looking for something like *ngIf="buildingForProduction"-type of solution of anything in this direction. Does it exist?