angular - Angular2 app public URL without port number -


what have config access angular2 app remote server without port number. example: server wakanda running www.myserver.com , angular2 app reachable via localhost:8000. i'll use www.myserver.com/myapp/ see angular2 app. i've found webpack.config.js, no idea whether right place or config set.

no idea wakanda is, point have mind baseurl, localhost seems "/" , want "/myapp" in production.

you'll need set in index.html inside head tag this:

<head>   <base href="/myapp">   ... </head> 

and in webpack config

output: {   publicpath: '/myapp',   ... }, 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -