From 0df5131d2b2aa92694f4498a14115f3d68c72d02 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Sun, 24 Mar 2024 17:12:07 +1100 Subject: [PATCH] index on main: 6c952de improve million application --- manifest.json | 6 ++++++ src/interface/index.html | 2 +- vite.config.ts | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index cd5db772..b233ae06 100644 --- a/manifest.json +++ b/manifest.json @@ -28,5 +28,11 @@ "js": ["src/SEQTA.ts"], "run_at": "document_start" } + ], + "web_accessible_resources": [ + { + "resources": ["src/interface/index.html"], + "matches": ["*://*/*"] + } ] } \ No newline at end of file diff --git a/src/interface/index.html b/src/interface/index.html index 5e81ff37..87214db3 100644 --- a/src/interface/index.html +++ b/src/interface/index.html @@ -7,7 +7,7 @@
- + diff --git a/vite.config.ts b/vite.config.ts index 611a731e..42ffbdb0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,7 @@ import million from "million/compiler" import manifest from './manifest.json' import react from '@vitejs/plugin-react-swc' import { sentryVitePlugin } from "@sentry/vite-plugin"; +import { join } from 'path' export default defineConfig({ plugins: [ @@ -34,4 +35,12 @@ export default defineConfig({ port: 5173, }, }, + build: { + minify: false, + rollupOptions: { + input: { + settings: join(__dirname, 'src', 'interface', 'index.html'), + } + }, + }, })