From 4ed9a4a3275559c73a396eff7e1fde3824951ebb Mon Sep 17 00:00:00 2001 From: Lim H Date: Mon, 16 May 2016 20:55:26 +0100 Subject: [PATCH] Call reload on instance, not package (#1661) - Also fix some wording --- docs/recipes/minimal-browsersync-setup-with-gulp4.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/recipes/minimal-browsersync-setup-with-gulp4.md b/docs/recipes/minimal-browsersync-setup-with-gulp4.md index 6e5106b35..ec22c0717 100644 --- a/docs/recipes/minimal-browsersync-setup-with-gulp4.md +++ b/docs/recipes/minimal-browsersync-setup-with-gulp4.md @@ -94,14 +94,16 @@ This is trivially accomplished with `gulp.series` const watch = () => gulp.watch(paths.scripts.src, gulp.series(scripts, reload)); ``` -### 4. Expose the default task +## Step 4: Bring it all together + +The last step is to expose the default task ```javascript const dev = gulp.series(clean, scripts, serve, watch); export default dev; ``` -### 5. And profit +And profit ```bash $ gulp @@ -139,7 +141,7 @@ function scripts() { } function reload(done) { - browserSync.reload(); + server.reload(); done(); }