From 71e83f138a6f25e44624e763f9ae064f38492828 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Mon, 25 Mar 2024 13:35:36 -0700 Subject: [PATCH] Fix tileinspect entrypoint in gh pages build [#49, #379] (#380) --- app/vite.config.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/vite.config.ts b/app/vite.config.ts index eca6e2f..9d8b149 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -1,6 +1,15 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import { resolve } from "path"; export default defineConfig({ - plugins: [react()] -}) + plugins: [react()], + build: { + rollupOptions: { + input: { + mapview: resolve(__dirname, "index.html"), + tileinspect: resolve(__dirname, "tileinspect/index.html") + }, + }, + }, +});