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
Post a Comment