You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/thrimbletrimmer/vite.config.ts

24 lines
642 B
TypeScript

import { fileURLToPath } from "url";
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import devtools from "solid-devtools/vite";
export default defineConfig({
base: "/thrimbletrimmer/",
plugins: [devtools(), solidPlugin()],
server: {
port: 3000,
},
build: {
target: "esnext",
rollupOptions: {
input: {
index: fileURLToPath(new URL("index.html", import.meta.url)),
edit: fileURLToPath(new URL("edit.html", import.meta.url)),
utils: fileURLToPath(new URL("utils.html", import.meta.url)),
thumbnails: fileURLToPath(new URL("thumbnails.html", import.meta.url)),
},
},
},
});