title: How do we exlude some folder in the root src folder when running ng build
body: <p>In my application generated by angular-cli there is <code>angular-cli.json</code> file which control ng operations.</p>
  <p>But how do we exclude some folder inside src which is specified in the root?</p>
  <pre class="lang-json prettyprint-override"><code>&quot;apps&quot;: [{
          &quot;root&quot;: &quot;src&quot;,
          &quot;outDir&quot;: &quot;dist&quot;,
          &quot;assets&quot;: [
              &quot;assets&quot;,
              &quot;favicon.ico&quot;
          ],
          &quot;index&quot;: &quot;index.html&quot;,
          &quot;main&quot;: &quot;main.ts&quot;,
          &quot;polyfills&quot;: &quot;polyfills.ts&quot;,
          &quot;test&quot;: &quot;test.ts&quot;,
          &quot;tsconfig&quot;: &quot;tsconfig.app.json&quot;,
          &quot;testTsconfig&quot;: &quot;tsconfig.spec.json&quot;,
          &quot;prefix&quot;: &quot;app&quot;,
          &quot;styles&quot;: [
              &quot;styles.css&quot;
          ],
          &quot;scripts&quot;: [],
          &quot;environmentSource&quot;: &quot;environments/environment.ts&quot;,
          &quot;environments&quot;: {
              &quot;dev&quot;: &quot;environments/environment.ts&quot;,
              &quot;prod&quot;: &quot;environments/environment.prod.ts&quot;
          }
      }],
  </code></pre>
  <p>Im thinking to add something like <code>&quot;exclude&quot;: [ &quot;folder_name1&quot;, &quot;folder_name1&quot; ]</code> but i cannot find any solution that agree in this.</p>