How can I use this in a gulp setup?
var browserSync = require('browser-sync').create();
var browserSyncClient = require('browser-sync-client');
browserSync.use(browserSyncClient);
gulp.task('browser-sync', function () {
browserSync.init({
server: {
baseDir: "./wwwroot"
},
clientEvents: [
"scroll",
"input:text",
"input:toggles",
"input:keydown",
"input:keypress",
"form:submit",
"form:reset",
"click",
"contenteditable:input",
"mouseup",
"mousedown",
"select:change"
],
ghostMode: {
clicks: true,
scroll: true,
forms: {
submit: true,
inputs: true,
toggles: true,
keypress: true,
keydown: true,
contenteditable: true,
change: true
},
mouseup: true,
mousedown: true
},
});
});