Add base app version

This commit is contained in:
Joshua Creek
2024-09-26 17:34:32 +01:00
parent af9ff16b3b
commit d7f48d29ad
19 changed files with 2831 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
import { defineConfig } from "vite";
import { svelte, vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
plugins: [
svelte({
preprocess: vitePreprocess(),
compilerOptions: {
customElement: true,
},
}),
],
build: {
lib: {
entry: "src/main.ts",
formats: ["es", "umd"],
name: "TechRadarEditor",
fileName: (format) => `tech-radar-editor.${format}.js`,
},
cssCodeSplit: false, // Ensure all CSS is bundled together
},
});