Skip to content

Instantly share code, notes, and snippets.

@adparadise
Created November 2, 2012 23:19
Show Gist options
  • Save adparadise/4004976 to your computer and use it in GitHub Desktop.
Save adparadise/4004976 to your computer and use it in GitHub Desktop.
Grunt custom task
module.exports = function(grunt) {
function custom () {
console.log(this.data.variable);
};
grunt.initConfig({
custom: {
dist: {
variable: 'value'
}
}
});
grunt.registerMultiTask('custom',
'Example task',
custom);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment