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="'+$(ThemeColor'"" />
<noscript>
</noscript>
<link href="iconresmid.png" rel="icon" sizes="192x192" />
<link href="iconresmid.png" rel="apple-touch-icon" />
<meta manifest="borl_attrinfo="'+$(Manifest'"" />
<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="'+$(BodyParameters'"" />
<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.