You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>sonixd</title>
|
|
|
|
<script>
|
|
|
|
(() => {
|
|
|
|
if (process?.env?.NODE_ENV !== 'development') {
|
|
|
|
const link = document.createElement('link');
|
|
|
|
link.rel = 'stylesheet';
|
|
|
|
link.href = './dist/style.css';
|
|
|
|
// HACK: Writing the script path should be done with webpack
|
|
|
|
document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="root"></div>
|
|
|
|
<script>
|
|
|
|
const scripts = [];
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
// Dynamically insert the DLL script in development env in the
|
|
|
|
// renderer process
|
|
|
|
scripts.push('../.erb/dll/renderer.dev.dll.js');
|
|
|
|
|
|
|
|
// Dynamically insert the bundled app script in the renderer process
|
|
|
|
const port = process.env.PORT || 4343;
|
|
|
|
scripts.push(`http://localhost:${port}/dist/renderer.dev.js`);
|
|
|
|
} else {
|
|
|
|
scripts.push('./dist/renderer.prod.js');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (scripts.length) {
|
|
|
|
document.write(
|
|
|
|
scripts
|
|
|
|
.map((script) => `<script defer src="${script}"><\/script>`)
|
|
|
|
.join('')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|