Y
Y
Yaroslav Akulov2016-02-02 00:29:54
JavaScript
Yaroslav Akulov, 2016-02-02 00:29:54

Why doesn't LiveReload work in gulp?

In general, it is not possible to achieve the LiveReload effect in gulp. Everything seems to be correct, but something is wrong... Here is the code:
var gulp = require('gulp'),
concatCSS = require('gulp-concat-css'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
autoprefixer = require('gulp-autoprefixer'),
livereload = require('gulp-livereload'),
connect = require('gulp-connect'),
minifyCSS = require('gulp -minify-css');
gulp.task('connect', function() {
connect.server({
root: 'app',
livereload: true
});
});

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Дмитрий, 2016-02-02
@uRusure

А в браузере что?

Юрий Кучеренко, 2016-02-02
@litlleidiot

Use gulp-browserSync, reload is already retired

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question