move to vite, landing page, add more shapes
This commit is contained in:
@@ -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`)])),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user