Last active
April 6, 2017 07:14
-
-
Save AntoscencoVladimir/b8685ca8967afe9570ef3d70a4277cde to your computer and use it in GitHub Desktop.
Gulp multiple servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const browserSync = require('browser-sync'), | |
bs1 = browserSync.create(), | |
bs2 = browserSync.create(), | |
bs3 = browserSync.create(); | |
gulp.task('browser-sync', function () { | |
bs1.init({ | |
server: "app", | |
port: 3010, | |
ui: { | |
port: 3011 | |
}, | |
index: "first-page.html" | |
}); | |
bs2.init({ | |
server: "app", | |
port: 3012, | |
ui: { | |
port: 3013 | |
}, | |
index: "second-page.html" | |
}); | |
bs3.init({ | |
server: "app", | |
port: 3014, | |
ui: { | |
port: 3015 | |
}, | |
index: "third-page.html" | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment