-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(compiler): Use timestamps to verify cache validity #972
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
Conversation
all tests pass for this branch for me - could some please please try it on their machine? |
@jantimon travis is failing? |
Mmm, tests are not passing on my machine. Let me see if I can figure out why. Sorry I didn't get a PR for this in. I've actually been working on it, but running into some bizarre bugs (something with file watchers being removed after the first compilation??). Edit: Okay, the same tests that fail for travis are failing for me it seems. My guess is that it has something to do with |
By the way, here's what I've found so far. HtmlWebpackPluginCaching should keep watching the webpack html if only a js file was changed fails because the plugin appears to be compiling html whenever any file is changed. I have a solution for this one, though it'll probably involve changing webpack-recompilation-simulator. HtmlWebpackPluginCaching should compile the webpack html if the template file was changed fails due to a
For reference, the html-webpack-plugin base directory is Any ideas? |
@denis-sokolov "HtmlWebpackPluginCaching should keep watching the webpack html if only a js file was changed fails because the plugin appears to be compiling html whenever any file is changed. I have a solution for this one, though it'll probably involve changing webpack-recompilation-simulator." Would it be possible to add a test for that case? |
fbc439c
to
5d06fd0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks for the amazing work here and at #967. Any estimates on how much of an improvement this will be? |
@linkenneth the performance gain depends on your webpack version, project size and what you do with the way how you use the html-webpack-plugin |
@dwoznicki I could find the reason for the childCompilation error with the unresolved dependency: |
5d06fd0
to
539b34b
Compare
@dwoznicki All previous tests pass!! I have also added a new test which uses the new I will try to port over your |
539b34b
to
3f1b97b
Compare
Tested this PR. It resolves the issues I had with |
4249585
to
27640b5
Compare
For reference, my project (which has grown substantially since #962) builds in ~8000ms without and ~1000ms with these changes. |
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. |
Based on #967 - try to im prove the performance by caching the entire child compilation.
This chang verifies the cache by comparing the child compilations file dependencies with the main compilation timestamps.