Javascript libraries and Compilation

Hello,
Using Delphi 10.3.2 or 10.4.1 with Web Core 1.5.6 "Rimini" and creating a new web core simple project or PWA project,
When selecting JavaScript libraries, they are added to the index.html, but on compilation the site index is always a basic index.html; for example with a brand new PWA project, after selecting 3 js libs :

Code in index.html source
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>TMS Web Project
</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta themecolor="borl_attrinfo=&quot;'+$(ThemeColor'&quot;" />
    <noscript>
</noscript>
    <link href="iconresmid.png" rel="icon" sizes="192x192" />
    <link href="iconresmid.png" rel="apple-touch-icon" />
    <meta manifest="borl_attrinfo=&quot;'+$(Manifest'&quot;" />
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" type="text/javascript"></script>
    <link crossorigin="anonymous" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
    <script crossorigin="anonymous" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" src="https://code.jquery.com/jquery-3.3.1.js" type="text/javascript"></script>
    <script src="$(ProjectName).js" type="text/javascript"></script>
    <style>
    </style>
  </head>
  <body>
<meta bodyparameters="borl_attrinfo=&quot;'+$(BodyParameters'&quot;" />
  <script type="text/javascript">rtl.run();</script>
  </body>
</html>

becomes

Code in published index
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#FFFFFF">
    <noscript>Your browser does not support JavaScript!</noscript>
    <link rel="icon" sizes="192x192" href="iconresmid.png">
    <link rel="apple-touch-icon" href="iconresmid.png">
    <link rel=manifest href="Manifest.json"/>
    <title>TMS Web Project</title>
    <script type="text/javascript" src="MyProject.js"></script>
    <style>
    </style>
  </head>
  <body>
    <script type="text/javascript">
      if ("serviceWorker" in navigator)
      {
         navigator.serviceWorker.register("ServiceWorker.js").then(
           function(ARegistration)
           {}).catch(
             function(AErr)
             {
               console.log("TMS WEB Core service worker registration failed", AErr);
             });
      }
    </script>
  </body>
  <script type="text/javascript">
    rtl.run();
  </script>
</html>

After each compilation, before debugging, i need to replace the html index file to see the intended result...

Thanks in advance for your hints or advices.

I cannot think of a reason for this and I cannot reproduce this.
Our test project is attached and you should see in the output folder the generated project HTML contains all JavaScript library links.
pwalinks.zip (33.8 KB)

I occasionally find the same: the built HTML file is not updated to the same as the source file. I have not been able to establish a pattern; it seems somewhat random.

What I do in cases like this it to "clean" the build (i.e. delete all the files in the publish folder) by right-clicking the project in the Project Manager pallette, and then build the project again.

Sorry for the long delay.

I always save units in a UNIT sub-folder, what i did also for the project html file. in the project options -> TMS Web , the "html file" option is correctly set to UNIT\index.html; but in fact if the file is moved, it won't be used and a new one will be generated in the compilation folder.

Thanks, I have the same problem with unit html file sometimes, and cleaning the project is the solution in this case. alas, this is not the solution for the project html file.

We will investigate.