Skip to content

Commit

Permalink
watch for changes in less files
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicoder86 committed Aug 30, 2016
1 parent d92b049 commit 7f0ec34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ gulp.task('client-stylesheet', stylesheetTask(false));
gulp.task('client-stylesheet-dist', stylesheetTask(true));
gulp.task('client-style', eslintTask());

gulp.task('client-stylesheet-watch', function() {
gulp.watch(['client/boot.less', 'client/**/*.less'], ['client-stylesheet']);
});

gulp.task('clean', cleanTask());

gulp.task('serve', function(done) {
runSequence(
'clean',
['client-build', 'client-copy', 'client-stylesheet', 'livereload'],
['client-build', 'client-copy', 'client-stylesheet', 'livereload', 'client-stylesheet-watch'],
'server-start',
done
)
Expand Down

0 comments on commit 7f0ec34

Please sign in to comment.