Add support for plugin grunt file

Can we just use `Array.prototype.forEach` here, then we won't need defaultSize.