I use Laravel Mix to compile CSS and JS codes. I use PhpStorm as my editor.
When I run npm run watch
to automatically build my codes when I edit CSS and JS files, PhpStorm will start indexing compiled codes and if I make a small change in my files PhpStorm will indexing all the built codes again.
PhpStorm's performance is then very bad when using npm run watch
command.
How to fix this?