From a0d4ac428e3fa41dd42942055d5ef71769496018 Mon Sep 17 00:00:00 2001 From: imzlh <2131601562@qq.com> Date: Sat, 5 Oct 2024 20:16:37 +0800 Subject: [PATCH] fix: chunk exceded maxium size --- vite.config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 6fb47ab..54fecac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -28,7 +28,7 @@ export default defineConfig({ "globPatterns": [ '**/*.{js,css,html,webp,ico,svg,woff2}' ], - maximumFileSizeToCacheInBytes: 8 * 1024 * 1024, + maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, globIgnores: [ 'type/(*.svg)' ] @@ -238,8 +238,11 @@ export default defineConfig({ // asciinema if(id.includes('/asciinema')) return 'asciinema'; + // office + if(id.includes('/office/')) + return 'office'; // additional pack - if(id.includes('/psd') || id.includes('/artplayer') || id.includes('/epub.vue') || id.includes('vue-reader') || id.includes('/office/')) + if(id.includes('/psd') || id.includes('/artplayer') || id.includes('/epub.vue') || id.includes('vue-reader')) return 'additional'; }, },