Gulp Load Tasks
Loads gulp tasks from a local directory (usually tasks/
), rather than from
your Gulpfile.
Usage
In your Gulpfile.js
:
// Tasks are in `tasks/`; // Load from a different directory:// require('gulp-load-tasks')('gulp_tasks');
tasks/uglify.js
:
var gulp = ;var uglify = ; module { return gulp ;};
tasks/default.js
:
// Double-brackets required, since the array gets passed directly to `gulp.task()`moduleexports = 'uglify';