Monday, March 20, 2017

npm run watch - Exclude file

As part of my build script using Laravel Mix, I'm needing to make a modification to one of the files inside the resources/assets/sass directory. The problem is that running npm run watch will then modify this file and the watcher re-runs the build process, causing an infinite recursive loop.

Is there any way to exclude an individual file from being watched for changes?



via I'm Liam

Advertisement