From b29de9fa2eebae3dc8f975801ae47b7acd841a0d Mon Sep 17 00:00:00 2001 From: mandalore Date: Thu, 28 May 2026 17:31:37 -0500 Subject: [PATCH] Fix build config to include all pages, partials, and images in dist Co-Authored-By: Claude Sonnet 4.6 --- footer.html => public/footer.html | 0 header.html => public/header.html | 0 {images => public/images}/logo.png | Bin {images => public/images}/photo1.jpg | Bin {images => public/images}/photo2.jpg | Bin {images => public/images}/photo3.jpg | Bin {images => public/images}/photo4.jpg | Bin {images => public/images}/photo5.jpg | Bin vite.config.js | 19 +++++++++++++++++-- 9 files changed, 17 insertions(+), 2 deletions(-) rename footer.html => public/footer.html (100%) rename header.html => public/header.html (100%) rename {images => public/images}/logo.png (100%) rename {images => public/images}/photo1.jpg (100%) rename {images => public/images}/photo2.jpg (100%) rename {images => public/images}/photo3.jpg (100%) rename {images => public/images}/photo4.jpg (100%) rename {images => public/images}/photo5.jpg (100%) diff --git a/footer.html b/public/footer.html similarity index 100% rename from footer.html rename to public/footer.html diff --git a/header.html b/public/header.html similarity index 100% rename from header.html rename to public/header.html diff --git a/images/logo.png b/public/images/logo.png similarity index 100% rename from images/logo.png rename to public/images/logo.png diff --git a/images/photo1.jpg b/public/images/photo1.jpg similarity index 100% rename from images/photo1.jpg rename to public/images/photo1.jpg diff --git a/images/photo2.jpg b/public/images/photo2.jpg similarity index 100% rename from images/photo2.jpg rename to public/images/photo2.jpg diff --git a/images/photo3.jpg b/public/images/photo3.jpg similarity index 100% rename from images/photo3.jpg rename to public/images/photo3.jpg diff --git a/images/photo4.jpg b/public/images/photo4.jpg similarity index 100% rename from images/photo4.jpg rename to public/images/photo4.jpg diff --git a/images/photo5.jpg b/public/images/photo5.jpg similarity index 100% rename from images/photo5.jpg rename to public/images/photo5.jpg diff --git a/vite.config.js b/vite.config.js index 4f1b25a..61187e4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,3 +1,18 @@ -import { defineConfig } from 'vite' +import { defineConfig } from 'vite'; +import { resolve } from 'path'; +import { fileURLToPath } from 'url'; -export default defineConfig({}) +const __dirname = fileURLToPath(new URL('.', import.meta.url)); + +export default defineConfig({ + build: { + rollupOptions: { + input: { + index: resolve(__dirname, 'index.html'), + signups: resolve(__dirname, 'signups.html'), + reporting: resolve(__dirname, 'reporting.html'), + standings: resolve(__dirname, 'standings.html'), + } + } + } +});