addyosmani / addyosmani/starter
Use gulp-if instead of gulp-filter
- Ngôn ngữ chính
- JavaScript
- Star
- 144
- Fork
- 14
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
``` js
gulp.task('sometask', function () {
var jsFilter = $.filter('**/*.js');
return gulp.src('app/*.html')
.pipe(jsFilter)
.pipe(uglify())
.pipe(jsFilter.restore())
.pipe(otherstuff)
.pipe(gulp.dest('stuff'))
});
```
becomes
``` js
gulp.task('sometask', function () {
return gulp.src('app/*.html')
.pipe(gif('*.js', uglify()))
.pipe(otherstuff)
.pipe(gulp.dest('stuff'))
});
```
gulp-if provides a nice way to apply portions of the pipeline only when the file matches a regex, function, glob, boolean, etc.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.