title: npm run build production does not distribute the production
body: <p>I have a problem with my Angular project. Especially on the build of the project.</p>
  
  <p>When I build my Angular poject with </p>
  
  <pre><code>ng build
  </code></pre>
  
  <p>it creates the dist-folder with the correct build. When I use the following command:</p>
  
  <pre><code>ng build --prod
  </code></pre>
  
  <p>it creates the production build (correct)</p>
  
  <p>When I use NPM (used by build server) I use this:</p>
  
  <pre><code>run build
  </code></pre>
  
  <p>But I want the production build. Whatever I do, it doesn't work locally or on the buildserver. I used these:</p>
  
  <pre><code>npm run build --prod
  npm run build --target=production
  npm run build --environment=prod
  npm run build --environment=production
  npm run build --env=production
  npm run build --env=prod
  npm run build *projectname* --environment=production
  npm run build *projectname* --env=production
  npm run build *projectname* production
  </code></pre>
  
  <p>And probably a lot more. It just does not build the production!</p>
  
  <p>I have a environment.prod.ts (<code>production = true</code>). It is set in the Angular.json. I have no clue what I am doing wrong.</p>