angular - Changing index.html generation in Angular2 -


i deploying angular (2) app container requires ng2 js loaded custom location.

currently when build app, index.html generates

<base href="/"> <app-root>loading...</app-root> <script type="text/javascript" src="inline.bundle.js"></script> <script type="text/javascript" src="polyfills.bundle.js"></script> <script type="text/javascript" src="styles.bundle.js"></script> <script type="text/javascript" src="vendor.bundle.js"></script> <script type="text/javascript" src="main.bundle.js"></script> 

however need generate like:

<!--<base href="/">--> <app-root>loading...</app-root> <script type="text/javascript" src="/custom/inline.bundle.js"></script> <script type="text/javascript" src="/custom/polyfills.bundle.js"></script> <script type="text/javascript" src="/custom/styles.bundle.js"></script> <script type="text/javascript" src="/custom/vendor.bundle.js"></script> <script type="text/javascript" src="/custom/main.bundle.js"></script> 

is possible? how can achieve this? thanks!

in .angular-cli.json:

"deployurl": "custom" 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -