Skip to content

Commit

Permalink
docs: add simple multi string replacement (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
nCubed authored Jul 24, 2022
1 parent 66f4ae2 commit 3437afc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ function replaceTemplate() {
.pipe(dest('build/'));
};

// or replace multiple strings
function replaceTemplate() {
return src(['file.txt'])
.pipe(replace('bar', 'foo'))
.pipe(replace('baz', 'fuz'))
.pipe(dest('build/'));
};

exports.replaceTemplate = replaceTemplate;
```

Expand Down

0 comments on commit 3437afc

Please sign in to comment.