react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

why the cpu is very high #209

Closed abnerCrack closed 8 years ago

abnerCrack commented 8 years ago

hey:) I run the program,The CPU has been high. 22d3c9bf-40da-41ba-a654-638e77dd0e85 how to fix this problem

feedethan commented 8 years ago

Well , I think this is node's problem, and i have another problem ,can you help me fix this? i have submit a issue ,the number is 210.

weblogixx commented 8 years ago

Hi @abnerCrack,

webpack itself is a bit performance hungry, depending on the used system. It mainly depends on the plugins you are inserting. If you add d3 for example, performance for initial builds may drop rapidly. The more modules you are loading, the more time it will take.

That said, I use this generator (and the underlying template) with various systems (MacBook Pro 2009 with Core 2 Duo, current MacMini, various Windows and Linux based machines) on a daily basis and do not suffer any performance issues. SSDs help a bit here ;)

That said, I cannot think of anything we could do to make performance that better. New Webpack and Node versions may help here, but they are currently beta.

abnerCrack commented 8 years ago

Thank you for your answer,I try to change the higher version of the node,its better now.