gulpfile.js
function serve() {
	var browserSync = require('browser-sync');

	browserSync({
		server: {
			baseDir: cfg.destination
		},
		ui: false,
		online: false,
		open: false,
		minify: false
	});

	gulp.watch(['*'], {cwd: cfg.destination}).on('change', browserSync.reload);
}
function serve() {
	var browserSync = require('browser-sync');

	browserSync({
		server: {
			baseDir: cfg.destination
		},
		ui: false,
		online: false,
		open: false,
		minify: false
	});

	gulp.watch(['*'], {cwd: cfg.destination}).on('change', browserSync.reload);
}
function serve ( ) { var browserSync = require ( 'browser-sync' ) ; browserSync ( { server : { baseDir : cfg . destination } , ui : false , online : false , open : false , minify : false } ) ; gulp . watch ( [ '*' ] , { cwd : cfg . destination } ) . on ( 'change' , browserSync . reload ) ; }
watch files for changes and reload
watch files for changes and reload