yoniholmes/grunt-text-replace — pull request #1 by Craga89 (2012-12-21 10:43:14+00:00)
Title: Use module.exports grunt arg instead of require()

Using require('grunt') won't work for globally installed grunt modules in some instances. It's better to use the passed module.exports reference to grunt itself, as seen in several of the grunt-contrib modules:

https://github.com/gruntjs/grunt-contrib-mincss/blob/master/tasks/mincss.js
https://github.com/gruntjs/grunt-contrib-clean/blob/master/tasks/clean.js