This commit is contained in:
Tony Giorgio
2023-11-05 11:28:35 -06:00
committed by Tony Giorgio
parent 388596ee61
commit 82f4a3d4d6
3 changed files with 18 additions and 52 deletions

View File

@@ -1,51 +0,0 @@
<!doctype html>
<html>
<head>
<title>Mutiny Wallet</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0 height=device-height viewport-fit=cover user-scalable=no"
/>
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="theme-color" content="#171717" />
<meta
name="description"
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
/>
<link rel="icon" href="/favicon.ico" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Mutiny Wallet" />
<meta
name="twitter:description"
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
/>
<meta name="twitter:site" content="https://app.mutinywallet.com/" />
<meta
name="twitter:image"
content="https://app.mutinywallet.com/images/twitter_card_image.png"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="Mutiny Wallet" />
<meta
property="og:description"
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
/>
<meta property="og:url" content="https://app.mutinywallet.com/" />
<meta
property="og:image"
content="https://app.mutinywallet.com/images/twitter_card_image.png"
/>
<link rel="apple-touch-icon" href="/images/icon.png" sizes="512x512" />
<link rel="mask-icon" href="/mutiny_logo_mask.svg" color="#000" />
<style>
html, body {
background-color: #171717;
}
</style>
</head>
<body>
<!---->
<script type="module" async src="./src/entry-client.tsx"></script>
</body>
</html>

17
insertHead.js Normal file
View File

@@ -0,0 +1,17 @@
import { readFile, writeFile } from 'fs/promises';
import { join } from 'path';
const insertHeadTag = async () => {
const filePath = join(process.cwd(), 'dist', 'public', 'index.html');
try {
let data = await readFile(filePath, 'utf8');
const lines = data.split('\n');
lines.splice(2, 0, '<head></head>');
data = lines.join('\n');
await writeFile(filePath, data);
} catch (err) {
console.error(`Error: ${err}`);
}
};
insertHeadTag();

View File

@@ -6,7 +6,7 @@
"scripts": {
"dev": "solid-start dev",
"host": "solid-start dev --host",
"build": "solid-start build",
"build": "solid-start build && node insertHead.js",
"start": "solid-start start",
"check-types": "tsc --noemit",
"eslint": "eslint src",