addyosmani / addyosmani/starter
Use gulp-if instead of gulp-filter
- Lingua principale
- JavaScript
- Stelle
- 144
- Fork
- 14
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
``` 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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.