• 欢迎光临~

vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:

开发技术 开发技术 2022-12-28 次浏览
vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:

看官方的解决方案:

1、在rollup配置文件中添加output.manualChunks,将模块拆分成多个chunk,减小每个chunk的大小;

2、build.chunkSizeWarningLimit,提高报错的阈值;
3、使用动态import()进行代码分割,减小每个chunk的大小。

我的解决方案,直接在vite.config.js配置build即可:

vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:

 

TRANSLATE with vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider: x
English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:
vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider: vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider: vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:
 
TRANSLATE with vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:
COPY THE URL BELOW
vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:
vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider: Back
EMBED THE SNIPPET BELOW IN YOUR SITE vue3+vite build打包报错:Some chunks are larger than 500 KiB after minification. Consider:
Enable collaborative features and customize widget: Bing Webmaster Portal
Back
喜欢 (0)