From b38eef0baae9f03cd88ddf4418b69ac65f7835dd Mon Sep 17 00:00:00 2001
From: Midhun Suresh <midhunr@element.io>
Date: Fri, 4 Feb 2022 14:52:44 +0530
Subject: [PATCH] Do a multi-page vite build

---
 .gitignore     | 2 +-
 package.json   | 2 +-
 vite.config.js | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 96a3571..59d60cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,5 @@ node_modules
 .DS_Store
 dist
 dist-ssr
-build
+target
 *.local
diff --git a/package.json b/package.json
index fce7ed6..9d92be9 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
   "version": "0.0.0",
   "scripts": {
     "start": "vite",
-    "build": "tsc && vite build && vite --config parent-vite.config.js build",
+    "build": "tsc && vite build",
     "preview": "vite preview"
   },
   "devDependencies": {
diff --git a/vite.config.js b/vite.config.js
index 578d2b7..b00ef04 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -6,10 +6,10 @@ module.exports = defineConfig({
     rollupOptions: {
       input: {
         main: resolve(__dirname, 'chatterbox.html'),
-        parent: resolve(__dirname, '/src/parent-style.css')
+        parent: resolve(__dirname, 'index.html')
       }
         },
-        outDir: "./build/chatterbox"
+        outDir: "./target"
   },
     server: {
         fs: {
-- 
GitLab