move to vite, landing page, add more shapes

This commit is contained in:
Vincent van der Wal
2026-07-19 10:04:08 +02:00
parent 25595d8281
commit f724cbff6d
25 changed files with 2841 additions and 5017 deletions
+17
View File
@@ -0,0 +1,17 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';
// one html entry per exploration; add new pages here and in src/
const pages = ['index', 'metatron', 'torus', 'matrix', 'phyllotaxis', 'flower', 'seed'];
export default defineConfig({
root: 'src',
base: './',
build: {
outDir: '../build',
emptyOutDir: true,
rollupOptions: {
input: Object.fromEntries(pages.map((page) => [page, resolve(__dirname, `src/${page}.html`)])),
},
},
});