Answer the question
In order to leave comments, you need to log in
Gulp doesn't understand html with different name?
Started using galp, everything was ok. But when you need to work with a file (watch) whose name is different from index.html, it does not show the page. Returns "Cannot GET". With what it can be connected?
gulp.task('watch', ['browser-sync', 'css-libs', 'scripts'], function() {
gulp.watch('app/sass/**/*.scss', ['sass'], browserSync.reload);
gulp.watch('app/*.html', browserSync.reload);
gulp.watch('app/js/**/*.js', browserSync.reload);
});
Answer the question
In order to leave comments, you need to log in
gulp.watch('app/**/*.html', browserSync.reload);
Did it help?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question