title: Angular runtime-es2015.js not found
body: <p>When I run "ng build" I noticed that it creates a folder structure like this.</p>
  
  <p>/dist/projectname/</p>
  
  <p>Then it generates all the files in the projectname folder.</p>
  
  <p>When I run my Angular app I get a 404 (Not found) error for the first script in the index file.</p>
  
  <pre><code>&lt;body&gt;
    &lt;app-root&gt;&lt;/app-root&gt;
      &lt;script src="runtime-es2015.js" type="module"&gt;&lt;/script&gt;
      &lt;script src="runtime-es5.js" nomodule defer&gt;&lt;/script&gt;
      &lt;script src="polyfills-es5.js" nomodule defer&gt;&lt;/script&gt;
      &lt;script src="polyfills-es2015.js" type="module"&gt;&lt;/script&gt;
      &lt;script src="styles-es2015.js" type="module"&gt;&lt;/script&gt;
      &lt;script src="styles-es5.js" nomodule defer&gt;&lt;/script&gt;
      &lt;script src="vendor-es2015.js" type="module"&gt;&lt;/script&gt;
      &lt;script src="vendor-es5.js" nomodule defer&gt;&lt;/script&gt;
      &lt;script src="main-es2015.js" type="module"&gt;&lt;/script&gt;
      &lt;script src="main-es5.js" nomodule defer&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <ol>
  <li>Should they not have src="projectname/runtime-es2015.js" in them?</li>
  <li>How can I get build to not build with a project name folder?</li>
  <li>Is there something I can do in my code to reference the projectname folder since it doesn't assume it?</li>
  </ol>
  
  <p>Additionally here is my server.js file since I feel like this is where the issues are coming from.</p>
  
  <pre><code>const express = require('express');
  const bodyParser = require('body-parser');
  const path = require('path');
  const http = require('http');
  const app = express();
  
  const api = require('./server/routes/api');
  
  // Parsers
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  
  app.use(express.static(path.join(__dirname, 'dist')));
  
  app.use('/api', api);
  
  app.get('/', (req, res) =&gt; {
      res.sendFile(path.join(__dirname, 'dist/clinic-manager/index.html'));
  });
  
  // Set Port
  const port = process.env.PORT || '3000';
  app.set('port', port);
  
  const server = http.createServer(app);
  
  server.listen(port, () =&gt; console.log(`Running on localhost:${port}`));
  </code></pre>
  
  <p>Thank you in advance for any help offered!</p>