Closed cognitom closed 9 years ago
The code has been changed like below. Use debounceDelay
. Not perfect, but it just works.
gulp.task('watch', function(){
gulp.watch('*.sketch/Data', { debounceDelay: 3000 }, ['symbols']); // wait 3 sec after the last run
});
Hi, everyone! I need your help to improve this template.
Sketch.app saves the file automatically in the background. With usual way of gulp, too much
save
events will be emitted. Does anyone have a good way to catch just thesave
events by the user?For example, the code below doesn't work well. Umm..