首页 > 解决方案 > 使用 npm run watch 降低 PhpStorm 性能

问题描述

我使用 Laravel Mix 编译 CSS 和 JS 代码。我使用 PhpStorm 作为我的编辑器。

当我在编辑 CSS 和 JS 文件时运行npm run watch以自动构建我的代码时,PhpStorm 将开始索引已编译的代码,如果我对我的文件进行小的更改,PhpStorm 将再次索引所有构建的代码。

npm run watch使用命令时,PhpStorm 的性能非常糟糕。

如何解决这个问题?

标签: webpackindexingphpstormlaravel-mix

解决方案


推荐阅读