I am working on POC where we have to package angular dist folder in spring mvc based web application(single war). This will be deployed in weblogic and tomcat. War file will serve the static content which is angular 2 app.
Now what i noticed is that when angular-cli builds the app, it is updating index.html with "script" tag to point to generated "js" files. I want to customize this script tag so that i can add "context" name in the url.
Is this something can be done? Or If I have to use webpack, does webpack support this customization?
here is example of script tag i would like to add during angular-cli build process
<script type="text/javascript" src="<CONTEXT-NAME>/inline.bundle.js"></script>