Skip to content

Instantly share code, notes, and snippets.

@AntoscencoVladimir
Last active April 6, 2017 07:14
Show Gist options
  • Save AntoscencoVladimir/b8685ca8967afe9570ef3d70a4277cde to your computer and use it in GitHub Desktop.
Save AntoscencoVladimir/b8685ca8967afe9570ef3d70a4277cde to your computer and use it in GitHub Desktop.
Gulp multiple servers
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