Closed sprynm closed 6 years ago
I've had fair success triggering less-watcher in my builds based on a --watch flag:
--watch
.pipe( $.if( watch, $.lessWatcher( LESSConfig ) ) )
It can only watch one file at a time but I understand you will be looking at that here: #6
However, I'd like to solve two annoying things:
trigger a notice when the file is built:
function() { notifier.notify( { message: fileName + " Rebuilt" } ) }
Any thoughts on how I can do either now?
Here was my attempt which failed silently on both accounts:
.pipe( $.if( watch, $.lessWatcher( LESSConfig, {debounceDelay: 2000}, function() { notifier.notify({ message: "Portal files rebuilt" }) } ) ) )
(Gulp 4)
I've had fair success triggering less-watcher in my builds based on a
--watch
flag:It can only watch one file at a time but I understand you will be looking at that here: #6
However, I'd like to solve two annoying things:
trigger a notice when the file is built:
function() { notifier.notify( { message: fileName + " Rebuilt" } ) }
Any thoughts on how I can do either now?
Here was my attempt which failed silently on both accounts:
(Gulp 4)