Created
November 2, 2012 23:19
-
-
Save adparadise/4004976 to your computer and use it in GitHub Desktop.
Grunt custom task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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