title: using angular cli to build application
body: <p>I am building my angular 8 application using angular cli</p>
  
  <pre><code>ng build
  </code></pre>
  
  <p>I copy over the file from the dist/myapp folder to the directory myapp on my webserver. When I access the application with my browser I get a couple of errors like this</p>
  
  <p>polyfills-es2015.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)</p>
  
  <p>and in fact the browser is looking for "myserver.local/polyfills-es2015.js"</p>
  
  <p>when I try to tell angular about base href like this</p>
  
  <pre><code>ng build --base href myapp/
  </code></pre>
  
  <p>my browser still gets 404-ed but this time because</p>
  
  <p>myserver.local/myapp/myapp/polyfills-es2015.js is not found</p>
  
  <p>What would be the correct way to deploy the app build with angular cli to some custom directory on the webserver?</p>