Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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