Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created February 20, 2014 20:11
Show Gist options
  • Save donaldallen/9122220 to your computer and use it in GitHub Desktop.
Save donaldallen/9122220 to your computer and use it in GitHub Desktop.
gulp.task('watch', function() {
server.listen(35729, function (err) {
if (err) {
return console.log(err)
};
gulp.watch('assets/sass/*.scss', ['styles']);
gulp.watch('assets/js/*.js', ['scripts']);
gulp.watch('assets/source/img/*', ['images']);
watch({ glob: '**/*.php' })
.pipe(plumber())
.pipe(livereload(server));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment