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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -