-
Notifications
You must be signed in to change notification settings - Fork 265
⒘ 自定义任务(高级)
hzlzh edited this page Feb 28, 2016
·
2 revisions
放置在 task
目录下以 task_
开头的 Javascript 文件会被加载,具体请查看任务的动态加载机制
代码示例:
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('./'));
});
};
xxx__item_hightlight