-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
Evaluate hard-source Webpack plugin #615
Comments
Phenomic implemented it here MoOx/phenomic#646 |
Just curious: What's the difference between hard-source-plugin and DllPlugin? ps: here's some articles related to DLLPlugin in case you don't know: https://robertknight.github.io/posts/webpack-dll-plugins/ |
@zhaoshengjun the DLLPlugin speeds up Webpack by making it do less work as you tell it to not pay attention to a list of modules. |
How do we know when/if it becomes stable? I don’t understand how to evaluate it. |
I haven't tried it yet myself so can't comment on its stability but the first thing to do I'd think is try adding it to a create-react-app and see the performance difference to see if that's significant enough to worry about making the change. I'll be trying it in Gatsby soon. From @thangngoc89 and @MoOx's experiments in Phenomic, it seems quite usable. |
Fun you mention us, we just released yesterday a new Phenomic release, which makes available the new "cache" option based on this plugin, that works for both webpack 1 & 2. Here are some number in a picture |
@MoOx Would you like to submit a PR to CRA enabling it? |
Hmm, I don’t think it’s mature enough. We shouldn’t leave people with issues like mzgoddard/hard-source-webpack-plugin#31 after ejecting. Let’s wait more. |
I was about to tell you this :) I opened mzgoddard/hard-source-webpack-plugin#40 so we can track "maturity" :) |
To be fair, regardless of the version number, I won’t feel good using this until major issues are solved. We are also conservative about updates and lock package versions so that CRA itself is less fragile when possible. |
I totally understand and I don't think "just bumping" will magically make this "mature". |
Consider using happypack as an alternate? |
|
Closing, as both suggestions appear to be flaky for some users. |
Sure vote for it: https://webpack.js.org/vote/ |
@sokra spent 30 influences for it |
https://github.com/mzgoddard/hard-source-webpack-plugin
Still early but very promising. Caches intermediate build steps. Can dramatically speed up incremental builds both for dev and prod.
The text was updated successfully, but these errors were encountered: