feat: add many things

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-03-08 23:00:03 +01:00
parent 45353089c2
commit 5a5f9a3003
104 changed files with 23417 additions and 2027 deletions

27
frontend/vite.config.js Normal file
View File

@@ -0,0 +1,27 @@
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
plugins: [
svelte({
compilerOptions: {
customElement: true,
},
}),
],
build: {
lib: {
entry: "src/main.js",
formats: ["iife"],
name: "ForageComponents",
fileName: () => "forage-components.js",
},
outDir: "../static/js/components",
emptyOutDir: true,
rollupOptions: {
output: {
inlineDynamicImports: true,
},
},
},
});