Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译完成后代码包超过2M,无法上传 #20

Closed
ishobal opened this issue Jul 5, 2018 · 8 comments
Closed

编译完成后代码包超过2M,无法上传 #20

ishobal opened this issue Jul 5, 2018 · 8 comments

Comments

@ishobal
Copy link

ishobal commented Jul 5, 2018

No description provided.

@F-loat
Copy link
Owner

F-loat commented Jul 5, 2018

下载自定义版本的 echarts 可以减小一些体积

@F-loat
Copy link
Owner

F-loat commented Jul 5, 2018

也可以试下分包处理 https://github.com/F-loat/mpvue-quickstart

@ishobal
Copy link
Author

ishobal commented Jul 5, 2018 via email

@F-loat
Copy link
Owner

F-loat commented Jul 5, 2018

呃,分包的效果不会比不分差的,不过被引用的次数多的话,可能还是在主包里

@ishobal
Copy link
Author

ishobal commented Jul 5, 2018 via email

@F-loat
Copy link
Owner

F-loat commented Jul 5, 2018

只是这个问题的话,直接在 issue 里问吧,也方便其他人参考

@ishobal
Copy link
Author

ishobal commented Jul 6, 2018

tim 20180706102017
_20180706101714
_20180706102134
按照您的建议,我做了两次尝试。首先,在分包里只放了一个页面,然而依然提示我分包大小超限,然后将echarts换成官网自定义的echarts.js,编译报错。

@F-loat
Copy link
Owner

F-loat commented Jul 6, 2018

build 之后应该不会这么大啊,自定义你看下已有的 issue 吧,应该没问题的

@F-loat F-loat closed this as completed Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants