include login page in vite build

This commit is contained in:
Blake Blackshear 2024-05-05 12:43:36 -05:00
parent 7094560819
commit 8310063501

View File

@ -1,5 +1,5 @@
/// <reference types="vitest" />
import path from "path";
import path, { resolve } from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import monacoEditorPlugin from "vite-plugin-monaco-editor";
@ -35,6 +35,14 @@ export default defineConfig({
},
},
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
login: resolve(__dirname, "login.html"),
},
},
},
plugins: [
react(),
monacoEditorPlugin.default({