From 3437afc93a5c360a0f21b988f42ff9cd83c84875 Mon Sep 17 00:00:00 2001 From: kindler chase Date: Sun, 24 Jul 2022 18:30:29 -0500 Subject: [PATCH] docs: add simple multi string replacement (#130) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 77c86e5..b925c72 100644 --- a/README.md +++ b/README.md @@ -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; ```