Closed jaggerwang closed 6 years ago
I don’t think we can help without a reproducing project. It’s not obvious to me where the problem could be but I agree it sounds like a lot.
When I modified just one file, I can see eslint result of all files. Is this right?
Yes although I don’t understand why there’s a CSS file in there.
Again, it would be great if we could look at a project. It’s hard to say anything otherwise.
Yes although I don’t understand why there’s a CSS file in there.
I see that the OP edited their post and included their package.json
, and it has react-app-rewired-less there.
maybe it's related?
As for the OP question, there are a lot of things that could affect recompile performance, maybe you have many import()
s? And 700 files sounds like a big project.
If you are really concerned about the perf I recommend you to eject and explore https://github.com/mzgoddard/hard-source-webpack-plugin / https://github.com/amireh/happypack / https://github.com/asfktz/autodll-webpack-plugin solutions.
This is also a good read https://slack.engineering/keep-webpack-fast-a-field-guide-for-better-build-performance-f56a5995e8f1
tl;dr -- yes this is expected, it'll get better eventually
Closing as answered by @viankakrisna, but performance should get much better with the release of 2.x; there have been many performance improvements to webpack 4.
There are about 700 files in our project, not including files under node_modules directory. Is there anyway to improve the recompile performance? Because I only changed one file, so I want to see the result as soon as possible.
The following is our package.json file.