Answer the question
In order to leave comments, you need to log in
Why doesn't gulp-connect livereload work?
Nivkakuyu does not want to work livereload. I freaked out, inserted an example from the page of the gulp-connect plugin itself, nothing too.
var gulp = require('gulp'),
connect = require('gulp-connect');
gulp.task('connect', function() {
connect.server({
root: 'dev',
livereload: true
});
});
gulp.task('html', function () {
gulp.src('./dev/*.html')
.pipe(connect.reload());
});
gulp.task('watch', function () {
gulp.watch(['./dev/*.html'], ['html']);
});
gulp.task('default', ['connect', 'watch']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question