Closed iliakan closed 8 years ago
E.g I want to disconnect from database when gulp is done.
How can I detect and do that?
In the past, gulp.on('stop') with orchestrator could help, but now stop works on every task.
gulp.on('stop')
stop
process.on('exit')
@phated that's wrong.
Imagine you have a DB connection open by a gulp task. Gulp finished, but the process won't exit.
E.g I want to disconnect from database when gulp is done.
How can I detect and do that?
In the past,
gulp.on('stop')
with orchestrator could help, but nowstop
works on every task.