Last active
December 20, 2015 08:59
-
-
Save bittersweetryan/6104269 to your computer and use it in GitHub Desktop.
This trick will dynamically load NPM tasks instead of having to load them manually.
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
/* | |
first install matchdep via NPM: npm-install matchdep --save-dev | |
then replace all of your grunt.loadNpmTasks( 'taskname' ) code with the following line: | |
*/ | |
//dynamically load tasks | |
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