title: Angular. Build step to remove attribute from html markup
body: <p>We use "data-test" attribute in markup to query element in tests. For example:</p>
  
  <pre><code>&lt;div data-test='myDiv'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>We don't want this attribute to be present in the production build. So far I found a workaround to create a directive that in runtime removes attribute for a production build. It's for sure will cost some CPU and seems doubtful. Looking for an approach to remove the attribute in build time. Any ideas are welcome. </p>