by LittleBobby · 6y ago · 0 comments
This applies not only to php of course.
Also, I'm one of those guys who was lucky to do enterprise react projects before it was a thing, and even converted a huge react codebase to typescript, and I'm telling you: If it takes 10 seconds instead of 2 for a giant codebase, there's a misbehaving plugin or a misconfugiration. Shed all of them and also explore hot module reloading.
My nodejs app (not react) restarts in about 3 seconds, which is still hugely annoying as I can hit reload after alt-tab in a second and I have to wait a few seconds or else I get "Bad Gateway" errors.
It's monitored by pm2 for auto restarting ts-node.
I wish there's a better solution that reloads faster than you can alt-tab and reload.