Is this possible to change script path in index.html file after build completed?

Viewed 4412

I have one angular-cli application, when i give ng build command it creates build file which has index.html file.

In index.html file, scripts paths are referred like below:

<script type="text/javascript" **src="runtime.js"**></script>
<script type="text/javascript" **src="polyfills.js"**></script>
<script type="text/javascript" **src="styles.js"**></script>
<script type="text/javascript" **src="vendor.js"**></script>
<script type="text/javascript" **src="main.js"**></script>

But i want to change that script like below,

<script type="text/javascript" **src="~/runtime.js"**></script>
<script type="text/javascript" **src="~/polyfills.js"**></script>
<script type="text/javascript" **src="~/styles.js"**></script>
<script type="text/javascript" **src="~/vendor.js"**></script>
<script type="text/javascript" **src="~/main.js"**></script>

Is it possible to change the path without using find and replace method?

1 Answers
Related