You can override index.html and any other static file by matching its path
By default, ScandiPWA provides this index file:
source: public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Muli font import from Adobe -->
<link rel="stylesheet" href="https://use.typekit.net/gbk7rfi.css">
<!-- Default Meta -->
<title>ScandiPWA</title>
<meta name="theme-color" content="#ffffff" />
<meta name="description" content="Web site created using create-scandipwa-app" />
<!-- Default content-configurations -->
<script>
window.contentConfiguration = {};
window.storeList = ['default'];
window.storeRegexText = `/(${window.storeList.join('|')})?`;
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
If you want to change any of these values, or import additional assets, you will need to override this file. Simply copy it to public/index.html of your theme's directory, and make the changes you need.
When compiling into Magento 2 theme, the application is using different file, the public/index.php:
If you want to change any of these values, or import additional assets, you will need to override this file. Simply copy it to public/index.php of your theme's directory, and make the changes you need.