title: What is the difference between ng build --prod and ng build --env=prod?
body: <p>What is the difference between <code>ng build --prod</code> and <code>ng build --env=prod</code>?</p>
  
  <p>My understanding is </p>
  
  <ul>
  <li><code>ng build --env=prod</code> only set environment settings inside <code>environment.prod.ts</code>, whereas </li>
  <li><code>ng build --prod</code> runs the <code>--env=prod</code> and does AOT, bundle, Minification Uglification, Dead code elimination</li>
  </ul>
  
  <p>Is this correct?</p>