PHPnews.io

File watching with chokidar

Written by Sebastian De Deyne / Original link on Apr. 16, 2021

File watchers are powerful tools. We take them for granted because they’re often baked in, like Webpack rebuilding when you save a file. Sometimes I’m in an environment without auto-reloading to my disposal. Yesterday, I was working on a CLI tool. The workflow was modify code, save changes, switch…