Custom tasks (advanced)
Perhaps you need to add some custom tasks during use. You only need to add a js file starting with task_
in the _task
directory. , for specific principles, you can view the dynamic loading mechanism of tasks
Code example:
var zip = require('gulp-zip'); module.exports = function (gulp, config) { gulp.task('zip', function () { return gulp.src('./dist/**/*') .pipe(zip('dist.zip')) .pipe(gulp.dest('./')); }); };