Skip to content

Instantly share code, notes, and snippets.

@thanpolas
Created March 21, 2013 13:11
Show Gist options
  • Save thanpolas/5212906 to your computer and use it in GitHub Desktop.
Save thanpolas/5212906 to your computer and use it in GitHub Desktop.
A required Gruntfile config
module.exports = function (grunt) {
multiTask: {
options: {
anObject: {
a: 1
}
},
target: {
options: {
anObject: {
b: 2
}
}
}
}
};
// in the task
grunt.registerMultiTask('multiTask', function() {
var options = this.options();
// desired result
// options === {a:1, b:2}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment