MapComplete/vite.config.js
Pieter Vander Vennet e1791d3acb Fix the build
2023-01-17 03:37:26 +01:00

17 lines
363 B
JavaScript

const { defineConfig } = require("vite")
import fs from "fs"
const allHtmlFiles = fs.readdirSync(".").filter((f) => f.endsWith(".html"))
const input = {}
for (const html of allHtmlFiles) {
const name = html.substring(0, html.length - 5)
input[name] = "./" + html
}
module.exports = defineConfig({
build: {
rollupOptions: {
input,
},
},
})