mirror of
https://github.com/jcreek/Tech-Radar-Editor.git
synced 2026-07-12 18:43:46 +00:00
feat(*): Enable loading the file and creating a PR in Azure Devops
This commit is contained in:
@@ -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
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user