title: @angular/cli build exclude assets subdirectory for --prod
body: <p>I have test data located under <code>assets/test/</code> that I don't want to be included in a production deployment.</p>
  
  <p>How do I configure <code>@angular/cli</code> to ignore / exclude that folder when running <code>ng build --prod</code>?<br>
  Adding an <code>exclude</code> section to the <code>tsconfig.json</code> as suggested elsewhere did not result in any observable change (i.e. the files where still under <code>dist/assets/test</code> after <code>ng build --prod</code> was run).</p>
  
  <pre><code>"compilerOptions": { ... },
  "exclude" : [ "src/assets/test" ]
  </code></pre>
  
  <p>Is tere another way to properly exclude certain files or folders from the <code>ng build</code> process?</p>