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

[FEATURE] 支持依赖分析 #68

Open
meixg opened this issue May 30, 2019 · 0 comments
Open

[FEATURE] 支持依赖分析 #68

meixg opened this issue May 30, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@meixg
Copy link
Member

meixg commented May 30, 2019

问题

当前 mars 编译时,会将 src 下所有文件都进行编译,没有进行依赖分析。
百度小程序中,会将小程序代码统一打包,也没有进行依赖分析。
造成的结果是无用代码、图片会造成包体积增大。

建议

建议将 mars 构建由 gulp 改成 webpack,支持依赖分析功能。
有两方面好处:

  1. 减少包体积,过滤无用代码、资源。
  2. 增加构建速度。
@JingyuanZhang JingyuanZhang added enhancement New feature or request and removed enhancement New feature or request labels May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants