You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference gruntjs/grunt#522. The grunt-reload task currently relies on a persistent variable set and then having the watch task call it to trigger a reload event. Since the watch task now spawns tasks as child processes this doesn't work anymore.
Should we consider moving the core of this watch task into a lib so other tasks can consume to be notified of watch events? Semi-related to #14. My grunt-hub task would also benefit from this as I duplicate a lot of the functionality there.
Here would be an example on how another task would implement:
varwatch=require('grunt-contrib-watch');watch.on('changed',function(filepath){console.log(this.target);// target that triggered the eventtriggerReload(this.target);});// or on all eventswatch.on('all',function(event,filepath){});
The text was updated successfully, but these errors were encountered:
Reference gruntjs/grunt#522. The grunt-reload task currently relies on a persistent variable set and then having the watch task call it to trigger a reload event. Since the watch task now spawns tasks as child processes this doesn't work anymore.
Should we consider moving the core of this watch task into a lib so other tasks can consume to be notified of watch events? Semi-related to #14. My grunt-hub task would also benefit from this as I duplicate a lot of the functionality there.
Here would be an example on how another task would implement:
The text was updated successfully, but these errors were encountered: