Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Created August 18, 2013 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dviramontes/6259361 to your computer and use it in GitHub Desktop.
Save dviramontes/6259361 to your computer and use it in GitHub Desktop.
Grunt Load Npm Task with one funtion
module.exports = function(grunt){
// instead of grunt.loadNpmTask one by one , use
require('matchdep').filterDev("grunt-*").forEach(grunt.loadNpmTask);
}
@christianschmizz
Copy link

Use instead:

require('matchdep').filterDev("grunt-*").forEach(grunt.loadNpmTasks);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment