-
-
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
Multiple entry points -> multiple html outputs webpack rebuild very slow #724
Comments
I met this, too. Rebuilding is rather slow using html-webpack-plugin@2+ on webpack 2 or 3. |
Could you try if it gets better with: #723 |
I try the pr code and it works, and I found that:
|
@cyqresig thank you for you feedback, we will make sure to improve that! |
@mastilver I try the pr code,but it didn't work . |
I met this, too. |
me two. |
Is there a difference between webpack 1 and webpack 3? |
yes i think it's because of webpack3.
notice that [0] webpack: wait until bundle finished: /chunk.2.js. |
# issues 724 jantimon#724
me too,but have some difference ways to solve? |
i met it also, i used single rebuild to resolve it, i think if i use multi entry point to build my project, i can build it to single file, at first i build it like this "npm run dev index"(this is process.argv) ; so, everything is easy |
Has anyone tried updating to Webpack 4 to see if this fixes whatever issues may be introduced via Webpack 3? Right now this plugin takes up about 50 seconds of a 71-second rebuild time in our main repo. |
Maybe @sokra might know what this performance loss might have caused. |
@CharlieLau html-webpack-plugin-for-multihtml this plugin can fix this issue, |
Can you give any information which changes improved the performance? |
It's html-webpack-plugin-for-multihtml @jantimon |
I used webpack 2.7.0 ,html-webpack-plugin 1.7.0 extract-text-webpack-plugin 2.1.2 to resolve it. |
@jyx12138 I mainly use this repo to insert proper file hashes/names into my HTML documents upon builds. Because of the slowness of this plugin with multiple entries, I opt for no JS/CSS hashed names when running locally and I just compile my EJS templates without this plugin. When I build for prod/staging, I use this plugin to generate the proper HTML documents with file hashes in the name. The main use case for hashes in the name is for CDN caching. It would be great if we could figure out what happened between version |
@vhmth the 2.x branch is using the webpack compiler to provide more flexibility about the templating. Unfortunately the underlying webpack api required some work arounds which seem to be really slow for newer webpack versions. Especially in larger projects. We are currently working on adapting the webpack normal module caching system for this plugin: If anyone has a good solution in mind please open a pull request. |
|
@funwithtriangles could you please go into detail how they fix it? the code is 7 month old and is hardly mergable. |
@jantimon understood! Was just asking to see what the situation was. |
@mastilver Can you provide a temporary solution, please. |
Hi, the same question in Webpack 4 and html-webpack-plugin3. |
The pr (#967) is trying to solve this - if you have time please try if it improves the performance. |
@jantimon It's work for me. |
Wow @jantimon thank you for getting this over the finish line and putting something out there. You are going to collectively save our eng team hours of wait time per week for builds/deploys to go through haha. :-P |
Right now #972 has still build errors on travis - once we find out why we will finally release a new alpha |
@jantimon 🤝 gracias! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
my question is:
rebuild very slowly, Has anyone ever met ?
The text was updated successfully, but these errors were encountered: