Skip to content

Commit

Permalink
show how to change a base directory for a glob stream
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored and Contra committed Jan 16, 2014
1 parent 30e23c9 commit 9f96698
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/recipes/specifying-a-new-base-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ try {
console.error('Unable to chdir to %s', gulp.env.base);
}
```

If you only need to specify a base directory for a certain glob

```js
gulp.src('./some/dir/**/*.js', { base: './public' });
```

0 comments on commit 9f96698

Please sign in to comment.