-
Notifications
You must be signed in to change notification settings - Fork 342
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
考虑集成 dll 功能用以提升调试效率 #2
Comments
以 dva-example-user-dashboard 为例,用上 dll 之后能快 2-3 秒。
依赖多了之后应该能更快点,稍后拿个复杂项目试试看。 |
感觉 antd 由于引入了 babel-plugin-import,所以 antd 部分的 dll 无效,待排查。 |
试了一个内部的复杂项目,开启 dll 后,启动时间从 44s -> 29s 。 |
roadhog 的 dllPlugin 实现:
|
考虑什么时候更新到npm呢 |
一直在关注这事~~就是最近项目太赶了,好像提pr |
下周吧,这周后面没时间搞这个了。 |
以 https://github.com/dvajs/dva-example-user-dashboard 为例,devtool 为 sourcemap 的情况下。未启用 dll 时启动时间 13.2s,修改代码后热编译 2.5s;启用 dll 之后,启动时间 8s,修改代码后热编译 0.7s 。 |
求解 |
No description provided.
The text was updated successfully, but these errors were encountered: