Initial Commit, final submission

This commit is contained in:
Eclypsed
2024-12-19 18:21:27 -05:00
commit 87f1c79481
29 changed files with 4126 additions and 0 deletions

32
vite.config.ts Normal file
View File

@@ -0,0 +1,32 @@
import { resolve } from 'path'
import { defineConfig } from 'vite'
const root = 'src/routes' // Entry point
export default defineConfig({
base: './', // Ensure all paths are relative
root,
resolve: {
alias: {
'@lib': resolve(__dirname, 'src/lib'),
'@images': resolve(__dirname, 'src/images'),
},
},
esbuild: {
supported: {
'top-level-await': true,
},
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, root, 'index.html'),
dashboard: resolve(__dirname, root, 'dashboard/index.html'),
settings: resolve(__dirname, root, 'settings/index.html'),
},
},
minify: false, // So professor can actually read the files
outDir: '../dist', // Build output to dist directory in src
},
envDir: '../../',
})