Created
March 21, 2013 13:11
-
-
Save thanpolas/5212906 to your computer and use it in GitHub Desktop.
A required Gruntfile config
This file contains 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) { | |
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