Skip to content

Commit

Permalink
Call reload on instance, not package (#1661)
Browse files Browse the repository at this point in the history
- Also fix some wording
  • Loading branch information
limdauto authored and phated committed May 16, 2016
1 parent d60883a commit 4ed9a4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/recipes/minimal-browsersync-setup-with-gulp4.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -139,7 +141,7 @@ function scripts() {
}

function reload(done) {
browserSync.reload();
server.reload();
done();
}

Expand Down

0 comments on commit 4ed9a4a

Please # to comment.