S
S
Shiot2016-02-16 16:19:03
gulp.js
Shiot, 2016-02-16 16:19:03

Gulp issue. What is it connected with?

I run gulp and it works, but then localhost stops working. I run it in the console again, but it does not fully load 07f4b00df8f4496881258d5d8b229378.JPG
How to solve this problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Makarov, 2016-02-16
@rmakarov

Perhaps browserSync hangs in the styles task, try livereload .
Or try running without it

K
Konstantin Velichko, 2016-02-18
@Zoxon

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']);

M
MilkyWay31, 2017-04-08
@MilkyWay31

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 question

Ask a Question

731 491 924 answers to any question