Error: subpackage size exceeds limit, main package source size 2326KB exceeds max limit 2MB

The uniapp WeChat applet is too large to be debugged on the real machine

When the development project is being debugged on the real machine, the following bullet box will appear (too large):
insert image description here
Click on the relevant questions and there are related questions in the answer, try Subpackage\color{red}{Subpackage}Subpackage ,developer tool upgrade\color{red}{developer tool upgrade}Developer tools upgrade ,check the compressed file for details\color{red}{check the compressed file for details }For details , check the compressed file (upper right corner of the developer tools) and other methods areinvalid, and finally solve the problem throughHBuilder- issue:

  • HBuilder opens the project - Release - Mini Program - WeChat
    insert image description here
    insert image description here
  • After clicking Release in the picture above, the console will start compiling, and after compiling, you can debug on the real machine.

Hope this article can help more people.

Guess you like

Origin blog.csdn.net/weixin_43363871/article/details/121767581