// including plugins var gulp = require('gulp'); var watch = require('gulp-watch'); gulp.task('watch', function() { watch(__dirname + "/css/**/*.css", function() { gulp.run('minify-css'); }); watch(__dirname + "/js/**/*.js", function() { gulp.run('minify-js'); }); });
gulp watch