title: Avoid Mangle Class Name in Angular 8
body: <p>I have a Single Page Application in Angular 8. In this application, I use in typescript class the constructor name to perform some Operations. All is working fine in developpement.</p>
  
  <pre><code>class User {
    GetClassName() {
       return this.constructor.name;
    } 
    // returns "User"
  }
  </code></pre>
  
  <p>However when I build in production mode :</p>
  
  <p><code>npm run ng build -- --configuration=prod</code></p>
  
  <p>Angular perform a lot of optimization including Uglify Class Name</p>
  
  <pre><code>class User {
    GetClassName() {
       return this.constructor.name;
    }
    // returns "t"
  }
  </code></pre>
  
  <p>So my constructor name is Now t and not user.
  How to configure Angular Build to avoid Uglify some class name or all class name ?</p>
  
  <p>It seems that's when can replace mangle option but i wouldn't do that in my nodemodule but prefer use a custom config file given on build. </p>
  
  <p>Did someone succesfully do that ?</p>
  
  <p>Thanks for all</p>