Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Perhaps browserSync hangs in the styles task, try livereload .
Or try running without it
Why did you put tasks in browser-sync?
This read frontender.info/handling-sync-tasks-with-gulp-js
// заменить это
gulp.task('browser-sync', ['styles', 'scripts'], function() {
// на это
gulp.task('browser-sync', function() {
// заменить это
gulp.task('default', ['browser-sync', 'watch']);
// на это
gulp.task('build', ['styles', 'scripts']);
gulp.task('default', ['build', 'browser-sync', 'watch']);
In general, a similar situation, as I usually type, and suddenly browser-sync froze, and then completely turned off, the same thing in the terminal, as if not reloading or auto-shutdown. Then I realized that: either Gulp , or who doesn’t like comments in Russian , or specifically signs /* */, since I replaced them with lowercase //. After that everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question