Adding watcher task for scripts - https://github.com/holger1411/understrap/issues/134
Adding watcher task to watch /src/js/ too and run „gulp script“ task onChange
This commit is contained in:
parent
6c32331ade
commit
a8ec9c10a4
|
@ -94,6 +94,7 @@ gulp.task('sass', function () {
|
||||||
gulp.task('watch', function () {
|
gulp.task('watch', function () {
|
||||||
gulp.watch('./sass/**/*.scss', ['sass']);
|
gulp.watch('./sass/**/*.scss', ['sass']);
|
||||||
gulp.watch('./css/theme.css', ['cssnano']);
|
gulp.watch('./css/theme.css', ['cssnano']);
|
||||||
|
gulp.watch([basePaths.dev + 'js/**/*.js'], ['scripts'])
|
||||||
});
|
});
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
|
|
Reference in New Issue