diff --git a/ui/vite.config.js b/ui/vite.config.js index 6b382d1b755..13d16590d61 100644 --- a/ui/vite.config.js +++ b/ui/vite.config.js @@ -5,27 +5,32 @@ import vue from "@vitejs/plugin-vue"; import {filename} from "./plugins/filename" import {commit} from "./plugins/commit" +export const manualChunks = { + // bundle dashboard and all its dependencies in a single chunk + "dashboard": [ + "src/components/dashboard/Dashboard.vue", + "src/components/dashboard/components/DashboardCreate.vue", + "src/components/dashboard/components/DashboardEdit.vue" + ], + // bundle flows and all its dependencies in a second chunk + "flows": [ + "src/components/flows/Flows.vue", + "src/components/flows/FlowCreate.vue", + "src/components/flows/FlowsSearch.vue", + "src/components/flows/FlowRoot.vue" + ], + "markdown": [ + "src/utils/markdown.js" + ] +} + export default defineConfig({ base: "", build: { outDir: "../webserver/src/main/resources/ui", rollupOptions: { output: { - manualChunks: { - // bundle dashboard and all its dependencies in a single chunk - "dashboard": [ - "src/components/dashboard/Dashboard.vue", - "src/components/dashboard/components/DashboardCreate.vue", - "src/components/dashboard/components/DashboardEdit.vue" - ], - // bundle flows and all its dependencies in a second chunk - "flows": [ - "src/components/flows/Flows.vue", - "src/components/flows/FlowCreate.vue", - "src/components/flows/FlowsSearch.vue", - "src/components/flows/FlowRoot.vue" - ] - } + manualChunks } }, },