import { defineConfig } from 'vite'
import { resolve } from 'path'

export default defineConfig({
  base: '/blobbo/', // served from partly.party/blobbo/ (forum-nginx web root)
  build: {
    target: 'es2022',
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'index.html'),
        'lane-a': resolve(__dirname, 'demos/lane-a.html'),
        'lane-b': resolve(__dirname, 'demos/lane-b.html'),
        'lane-c': resolve(__dirname, 'demos/lane-c.html'),
        'lane-f': resolve(__dirname, 'demos/lane-f.html'),
        'lane-g': resolve(__dirname, 'demos/lane-g.html'),
        'lane-h': resolve(__dirname, 'demos/lane-h.html'),
      },
    },
  },
})
