Skip to content

Commit

Permalink
fix: chunk exceded maxium size
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Oct 5, 2024
1 parent 770a4ab commit a0d4ac4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
]
Expand Down Expand Up @@ -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';
},
},
Expand Down

0 comments on commit a0d4ac4

Please sign in to comment.