4
1

More than 3 years have passed since last update.

webpack-dev-serverのhot reloadでCPU使用率が上がる問題対応

Posted at

概要

タイトル通り
nodeの使用率が100%前後になってMacが高熱になってて辛かった

方法

webapck-dev-serverのconfigに以下を追記する

watchOptions: {
  poll: 1000,
  ignored: ['node_modules']
}

結果

追加前は100%前後だったCPU使用率が20%前後に落ち着いた
Macが熱くて火傷しそうだったので助かった

参考

github issueにあった
https://github.com/webpack/webpack-dev-server/issues/2140

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1