Last Updated: February 25, 2016
·
1.872K
· shaundunne

Grunt loadNpmTasks snippet

Use npm module matchdep then load in you grunt tasks by filtering through the node modules you have installed in your project with:

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