Nuxt js high CPU usage in dev environment Nuxt js high CPU usage in dev environment docker docker

Nuxt js high CPU usage in dev environment


Probably problem with the webpack's watch mode.As stated here:

For some systems, watching many file systems can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like node_modules

module.exports = {  //...  watchOptions: {    ignored: /node_modules/  }};

In your case (nuxt.js), just add to nuxt.config.js

 watchers: {    webpack: {      ignored: /node_modules/    }  }