grunt
grunt copied to clipboard
I want to do something before task exit , what should I do?
I create a grunt plugin , when I press ctrl+c, the grunt exit , but I want to do something in the grunt plugin before the process exit.
I tried like this
grunt.registerMultiTask('task1', 'runtask', function () {
function exitFn(){
console.log('the task exit.')
}
process.on('uncaughtException', exitFn)
process.on('exit', exitFn)
}
it's not work.
tks!
#1543 Looks similar to this issue