I want to build and deploy my Angular 2 front end to a Tomcat application server. For getting started I\'ve followed exactly the steps of the following introduction: https:/
I had a similar situation. The front-end app was ready using angular-2 and webpack and I wanted to deploy it on tomcat server. I followed the following steps:
Run command “ng build --prod --bh /[URL you want to extend for production]” on your Angular 2 project folder.
It will create dist folder in your angular2 app & 'your-project-name' from step 1 will be used on the tomcat server URL.
Copy all the files of newly created dist folder & paste them in webapps folder of Java application.
Create war file.
Deploy that war on server.
Hope it helps!