BG1337:gulp-test ed$ gulp browserSync
[13:11:36] Using gulpfile /Library/WebServer/Documents/Websites/gulp-starting-template/gulpfile.js
[13:11:36] Task 'browserSync' is not in your gulpfile
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: "app"
}
});
});
gulp.task('sass', function() {
return gulp.src('app/scss/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('app/css'))
.pipe(browserSync.reload({
stream: true
}))
});
gulp.task('watch', ['browserSync', 'sass'], function (){
gulp.watch('app/scss/**/*.scss', ['sass']);
});