diff --git a/vite.config.ts b/vite.config.ts index d264cdc..5ea7d54 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,7 @@ import vue from '@vitejs/plugin-vue' import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite' import { dirname, resolve } from 'node:path' import { gitDescribeSync } from 'git-describe' +import { visualizer } from "rollup-plugin-visualizer"; // Footer version const gitVer = gitDescribeSync() @@ -26,10 +27,15 @@ export default defineConfig({ } }, build: { - cssCodeSplit: true - }, - optimizeDeps: { - exclude: ["oh-vue-icons/icons"] + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id.toString().split('node_modules/')[1].split('/')[0].toString(); + } + } + } + } }, envPrefix: 'SAFETWITCH_', })