File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,24 @@ browserSync.init(['css/*.css'], {
6868
6969** Proxy**
7070
71+ Depending on what version of Browser Sync you're using, you will need to alter this configuration slightly.
72+ To check what version you're running, use: ` npm view browser-sync version `
73+
7174``` js
72- // Watch CSS files and use the proxy with your own server.
75+ // Watch CSS files and use the proxy with your own server. (For browser-sync versions < 0.7.0)
7376browserSync .init ([' css/*.css' ], {
7477proxy: {
7578host: ' mylocal.dev' ,
7679port: ' 8000'
7780}
7881});
7982
83+ // Watch CSS files and use the proxy with your own server. (For browser-sync versions >= 0.7.0)
84+ browserSync .init ([' css/*.css' ], {
85+ proxy: ' mylocal.dev:8000'
86+ });
87+
88+
8089```
8190
8291** Using along-side other watch tasks (SASS)**
You can’t perform that action at this time.
0 commit comments