Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kubaszymanowski's avatar

Laravel Mix + PhpStorm = Lag

Hi,

I'm constantly experiencing a 1-2 second lag in PhpStorm when switching windows from browser to the editor while Mix is watching for changes. The npm run watch command is running in the built-in console in Powershell(Windows). During this lag editor doesn't respond at all, cannot type, cannot switch tabs. Has anyone experienced similar issues and knows how to fix this?

Thanks

0 likes
1 reply
kubaszymanowski's avatar
Level 7

I think I solved this by excluding public directory from indexing.

Please or to participate in this conversation.