Skip to content

Commit e751ac9

Browse files
committed
docs(gulp): Fix reload example, closes #34, #33, #32
1 parent 37159e9 commit e751ac9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_src/_includes/snippets/gulp/reload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gulp.task('js-watch', ['js'], browserSync.reload);
1717
gulp.task('serve', ['js'], function () {
1818

1919
// Serve files from the root of this project
20-
browserSync({
20+
browserSync.init({
2121
server: {
2222
baseDir: "./"
2323
}

docs/gulp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ <h3 id="gulp-reload" class="section-link">
220220
gulp.task(<span class="hljs-string">'serve'</span>, [<span class="hljs-string">'js'</span>], <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
221221

222222
<span class="hljs-comment">// Serve files from the root of this project</span>
223-
browserSync({
223+
browserSync.init({
224224
server: {
225225
baseDir: <span class="hljs-string">"./"</span>
226226
}

0 commit comments

Comments
 (0)