N
N
Nevada182017-02-06 19:01:16
css
Nevada18, 2017-02-06 19:01:16

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

1 answer(s)
S
Sergey Goryachev, 2017-02-06
@webirus

gulp.watch('app/**/*.html', browserSync.reload);
Did it help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question