Answer the question
In order to leave comments, you need to log in
Who can explain the strange behavior of gulp?
There are 2 tasks (besides task-watcher):
var gulp = require('gulp');
gulp.task('watch', function () {
gulp.watch('src/*.html', ['html']);
gulp.watch('src/*.php', ['php']);
});
gulp.task('html', function () {
gulp.src('src/*.html')
.pipe(gulp.dest('app'))
});
gulp.task('php', function () {
gulp.src('src/*.php')
.pipe(gulp.dest('app'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question