-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix "Multiple entry points -> multiple html outputs webpack rebuild very slow #724" #797
Conversation
# issues 724 jantimon#724
Thank you for having a go at this issue :) But I think the best way to solve that issue would be that So rather that instantiate multiple plugins, we would only have one. How does that sounds to you? Also tests would be awesome! ;) |
"html-webpack-plugin takes an array of config" can not solve this issue, The root of this issue is cache. when a file has been changed, you should avoid create new |
can you merge the pr, and publish a feature fix version? |
html-webpack-plugin构建存在性能问题,暂时更换使用html-webpack-plugin-for-multihtml PR: jantimon/html-webpack-plugin#797
这个确实减少了很多的编译时间,之前11个页面更新其中的一个就需要全部编译,花40s左右,现在基本上6s就行了,但是还有一个问题,就是我更新了index.pug仍然会产生很多次的编译。不知道是不是配置的问题。 This is really a lot of compilation time, before 11 pages to update one of them need to compile all, spend 40s or so, now basically 6s on the line, but there is a problem that I updated the index.pug will still produce a lot Compile time. Do not know if the configuration is not the problem. |
@loopArray It is recommended to send configuration, my project test did not appear this situation |
@loopArray 我也遇到类似问题,你可以看看这个pr可不可以解决 #802 |
@jinker @mastilver i also tried to do so, and it only reduce 50% time(at my project, recompilation takes 20s). at my project, the task of compile template is very complex, so the template has not been changed, it should not be recompilated. |
@mastilver I think so, my project is more heavily. i has forked html-webpack-plugin, and published html-webpack-plugin-for-multihtml to solve my issue. |
@mastilver Thanks your feedback. |
@daifee Thanks for your work! Using your fork make our project's build time reduce from 10s -> 0.8s. Could you share the profile experience on how to locate the time consuming part in webpack building? I tried to use |
@daifee |
@xilin view the source code of html-webpack-plugin. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
issues 724
#724