-
Notifications
You must be signed in to change notification settings - Fork 94
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
Happypack block #126
Happypack block #126
Conversation
packages/happypack/index.js
Outdated
* Takes an array, a function or something falsy and returns the array, the | ||
* function wrapped in an array or an empty array, respectively. | ||
*/ | ||
function toArray(value) {https://github.com/fenos/webpack-blocks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/fenos/webpack-blocks in code ??
@amilajack We still need some proof that it works as expected, esp. due to the performance concern. Can we do anything to help testing it? |
@andywer What kind of testing would you like me to do? I can test this on some projects that I have that use webpack. Or do you want me to do performance testing? |
Just some rudimentary testing. Does it work (I suppose so) and is it faster than without :) |
@amilajack @andywer I'm preparing a small react repo with webpack-blocks so we can measure the performance @andywer : thanks for fixing the copy typo |
@andywer @amilajack I was trying to find a react starter trough github so that i could just swap the webpack config to webpack-block, they are all relatively small, the build takes less then 4.0sec, so is not realistic. However there I could see that happypack did improve performance of 1s. So I'm wondering if there is something wrong with the webpack config that we are using, or maybe not. If you could try it in a bigger project then would help |
@fenos A relatively big project that I would recommend is https://github.com/chentsulin/electron-react-boilerplate, which I am a maintainer of. In the project, we're having a lot of issues with slow build times. Also to have noticeable performance improvements, I think we have to add support for webpack caches and DLL's |
Any news? |
Haven't had the chance to do this yet. I hope @fenos had a go at this |
Any news? |
Hey, guys. FYI, I've just published It has a On my tests, I'm using it on ARc, which is a relatively small project, and these are the build times on my Mac (4 CPUs):
ARc only uses I'm also using that on a bigger project at work with If this PR get merged, I can deprecate that. I'm also fine with maintaining it as I'm using it on big projects in production. |
Hey @diegohaz. Sounds great, thank you! We should look into that, esp. since it's already published. |
So what we’re going to do here? I’d close this PR, make a list of third-party blocks (already planned and needed) and link @diegohaz block there. |
I agree with @sapegin |
As discussed in the issue #14 will be very nice to have a
happypack
block wich allows us to easily implementHappypack
features to improve the performance of the build.@andywer found a neat way to implement the block using the
webpack-block
API, big thanks for that.With a bit of delay I finish it up, so here you go.
Note:
I'm using the loader for a while now, and unfortunately, I haven't seen any improvements in terms of build speed in either watch mode and production build This Pr will also help to debug the problem.