Friday, 27 September 2013

Fire function when Grunt task is completed

Fire function when Grunt task is completed

I have a grunt multitask registerd and i'm trying to fire a function once
a task has ended. I'm using grunt.task.run. Here is the code.
grunt.task.run(["clean", "sass:prod", "cssmin", "concat", "uglify",
"copy:dev"]);
I want to run a function once the copy:dev task is completed. Any ideas?

No comments:

Post a Comment