From bd78c07c80df22a912446c4f21917beaf7d0b7f3 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 31 Mar 2024 15:22:36 +0200 Subject: [PATCH] remove splitVendorChunkPlugin --- interface/vite.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/vite.config.ts b/interface/vite.config.ts index 008df4f7b..e1349f5c2 100644 --- a/interface/vite.config.ts +++ b/interface/vite.config.ts @@ -1,4 +1,4 @@ -import { defineConfig, splitVendorChunkPlugin } from 'vite'; +import { defineConfig } from 'vite'; import viteTsconfigPaths from 'vite-tsconfig-paths'; import preact from '@preact/preset-vite'; import viteImagemin from 'vite-plugin-imagemin'; @@ -30,6 +30,7 @@ export default defineConfig(({ command, mode }) => { } if (mode === 'hosted') { + console.log('Preparing for hosted build'); return { plugins: [preact(), viteTsconfigPaths()], build: { @@ -38,11 +39,12 @@ export default defineConfig(({ command, mode }) => { }; } + console.log('Preparing for production, optimized build'); + return { plugins: [ preact(), viteTsconfigPaths(), - splitVendorChunkPlugin(), { ...viteImagemin({ verbose: false,