From 922496e5507c39ed44f181f209b1e3866c71ae24 Mon Sep 17 00:00:00 2001 From: Leo Caseiro Date: Fri, 4 Mar 2016 09:43:12 +1100 Subject: [PATCH] Fix documents with references from #55 The examples was incorrected. * From `'src/*.js'` to `'src/**/*.js'` * From `'*'` to `'**'` --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 18e14ab..04c3b56 100644 --- a/readme.md +++ b/readme.md @@ -25,9 +25,9 @@ const filter = require('gulp-filter'); gulp.task('default', () => { // create filter instance inside task function - const f = filter(['*', '!src/vendor']); + const f = filter(['**', '!*src/vendor']); - return gulp.src('src/*.js') + return gulp.src('src/**/*.js') // filter a subset of the files .pipe(f) // run them through a plugin @@ -45,9 +45,9 @@ const filter = require('gulp-filter'); gulp.task('default', () => { // create filter instance inside task function - const f = filter(['*', '!src/vendor'], {restore: true}); + const f = filter(['**', '!*src/vendor'], {restore: true}); - return gulp.src('src/*.js') + return gulp.src('src/**/*.js') // filter a subset of the files .pipe(f) // run them through a plugin @@ -93,9 +93,9 @@ const uglify = require('gulp-uglify'); const filter = require('gulp-filter'); gulp.task('default', () => { - const f = filter(['*', '!src/vendor'], {restore: true, passthrough: false}); + const f = filter(['**', '!*src/vendor'], {restore: true, passthrough: false}); - const stream = gulp.src('src/*.js') + const stream = gulp.src('src/**/*.js') // filter a subset of the files .pipe(f) // run them through a plugin