Skip to content

Commit eaf9875

Browse files
committed
0.8.0
2 parents d088fa7 + 47d1e15 commit eaf9875

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ gulp.task('default', ['sass', 'browser-sync'], function () {
8787
Sometimes you might just want to reload the page completely (for example, after processing a bunch of JS files) - you can do that
8888
by passing `once` as an option. This will stop `reload` being call multiple times.
8989

90+
Depending on what version of Browser Sync you're using, you will need to alter this configuration slightly.
91+
To check what version you're running, use: `npm view browser-sync version`
92+
93+
When running Browser Sync versions prior to 0.7.0, use the following:
9094
```js
9195

9296
// start server
@@ -111,7 +115,14 @@ gulp.task('js', function () {
111115
gulp.task('default', ['browser-sync'], function () {
112116
gulp.watch("js/*.js", ['js']);
113117
});
118+
```
114119

120+
When running Browser Sync versions of 0.7.0 or higher, use the following:
121+
```js
122+
// Watch CSS files and use the proxy with your own server.
123+
browserSync.init(['css/*.css'], {
124+
proxy: 'mylocal.dev:8000'
125+
});
115126
```
116127

117128
**Reloading manually**

0 commit comments

Comments
 (0)