mnswpr/vite.config.js
Ayo f4ac3b0c12
Some checks are pending
Checks / lint (push) Waiting to run
Checks / test (push) Waiting to run
Checks / content (push) Waiting to run
chore: organize repo
2026-07-18 22:00:07 +02:00

22 lines
655 B
JavaScript

import { resolve } from 'node:path'
import { defineConfig } from 'vite'
const root = resolve(import.meta.dirname, 'src')
// App source lives in src/; env files and the build output stay at the repo root.
export default defineConfig({
root,
// .env* files sit at the repo root next to package.json, not in src/.
envDir: import.meta.dirname,
build: {
outDir: resolve(import.meta.dirname, 'dist'),
emptyOutDir: true,
// Multi-page build: the game (index.html) and the frozen Legends page.
rollupOptions: {
input: {
main: resolve(root, 'index.html'),
legends: resolve(root, 'legends.html')
}
}
}
})