'how to customize index.html while running ng build

When ever I'm running ng build its generating content from in index.html file.

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>NgCli</title>
      <base href="/">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="icon" type="image/x-icon" href="favicon.ico">
    </head>
    
    <body>
    
      <app-root></app-root>
    
    <script type="text/javascript" src="runtime.js"></script>
<script type="text/javascript" src="es2015-polyfills.js" nomodule></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>
</body>
    
    </html>

Is any way to generate only style and script tag without html tags like below

<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="runtime.js">
</script><script type="text/javascript" src="es2015-polyfills.js" nomodule>
</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>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source