From: Greg Hurrell Date: Tue, 4 Aug 2015 08:27:22 +0000 (-0700) Subject: Make `gulp watch` monitor CSS changes as well X-Git-Url: https://git.wincent.com/hextrapolate.git/commitdiff_plain/1df612a3d42ac8ad4628b54f0022ba2783ba5b47 Make `gulp watch` monitor CSS changes as well Seeing as CSS is getting bundled via webpack, we should really be triggering the webpack:build task whenever it changes. Got rid of the misleading "js" task in the process. --- diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 96a22f9..f5e775b 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -46,8 +46,6 @@ gulp.task('build', ['webpack:build']); gulp.task('flow', ['typecheck']); -gulp.task('js', ['build', 'lint', 'test', 'typecheck']); - gulp.task('lint', () => ( gulp.src('src/**/*.js') .pipe(eslint()) @@ -79,7 +77,7 @@ gulp.task('test', () => ( gulp.task('watch', () => { watching = true; - gulp.watch('src/**/*.js', ['js']); + gulp.watch('src/**/*.{css,js}', ['build', 'lint', 'test', 'typecheck']); }); gulp.task('webpack:build', callback => {