summaryrefslogtreecommitdiff
path: root/esbuild.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'esbuild.config.js')
-rw-r--r--esbuild.config.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/esbuild.config.js b/esbuild.config.js
index 1bee10c..88d726a 100644
--- a/esbuild.config.js
+++ b/esbuild.config.js
@@ -39,17 +39,6 @@ async function copyAssets() {
async function processHTML() {
let html = await fs.readFile('src/index.html', 'utf8');
-
- const host = process.env.HOST || '';
- const cleanHost = host.replace(/\/$/, '');
-
- if (cleanHost) {
- html = html.replace(/href="\/bundle\./g, `href="${cleanHost}/bundle.`);
- html = html.replace(/src="\/bundle\./g, `src="${cleanHost}/bundle.`);
- html = html.replace(/href="\/img\//g, `href="${cleanHost}/img/`);
- html = html.replace(/src="\/oneko\//g, `src="${cleanHost}/oneko/`);
- }
-
await fs.writeFile('dist/index.html', html);
}