From 20c81628f1a15e932ba2715c2a95c88f7dfcdba9 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Fri, 20 Dec 2024 17:59:52 +0100 Subject: [PATCH] More vite improvements --- vite.config.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index d156353..2c3749e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -74,6 +74,7 @@ export default defineConfig({ build: { minify: 'esbuild', cssCodeSplit: false, + chunkSizeWarningLimit: 550, rollupOptions: { output: { // assetFileNames: '[hash][extname]', @@ -82,12 +83,8 @@ export default defineConfig({ assetFileNames: `[hash][extname]`, preserveModules: false, - manualChunks: (id) => { - if (id.includes('node_modules')) { - return 'vendor'; - } else { - return 'app'; - } + manualChunks: () => { + return 'app'; } } }