# using angular cli to build application

I am building my angular 8 application using angular cli

ng build


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

and in fact the browser is looking for “myserver.local/polyfills-es2015.js”

when I try to tell angular about base href like this

ng build --base href myapp/


my browser still gets 404-ed but this time because