Skip to content

Instantly share code, notes, and snippets.

@danielyogel
Created August 4, 2014 20:40
Show Gist options
  • Save danielyogel/94f4fd79fa9bd5d62e1b to your computer and use it in GitHub Desktop.
Save danielyogel/94f4fd79fa9bd5d62e1b to your computer and use it in GitHub Desktop.
gulp control flow
gulp.task('watch-prod', ['templates', 'js-prod', 'sass'], function () {
livereload.listen();
gulp.watch('js/**/*.html', ['templates']);
gulp.watch(['js/**/*.js', 'dist/templates.js'], ['js-prod']);
gulp.watch('**/*.scss', ['sass']);
gulp.watch(['dist/**']).on('change', livereload.changed);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment