forked from MapComplete/MapComplete
Fix the build
This commit is contained in:
parent
fd30c44352
commit
e1791d3acb
3 changed files with 54 additions and 113 deletions
|
@ -1,2 +1,17 @@
|
|||
/** @type {import('vite').UserConfig} */
|
||||
export default {}
|
||||
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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue