I have setup gulp so rebooting the browser when making changes. However, for css changes, I want the browser to update without updating, but I'm not sure how to do this. For my current setup, I used this tutorial:
var debug = require('gulp-debug'), connect = require('gulp-connect'), watch = require('gulp-watch'), livereload = require('gulp-livereload'); gulp.task('webserver', function () { connect.server({ livereload: true, root: ['demo/'] }); }); gulp.task('livereload', function () { gulp.src(['index.html', 'resources/**/*.js']) .pipe(watch(['resources/**/*.html', 'index.html']))
In my css task, I also call
.pipe(livereload());
Any suggestions I need to change, so css updates happen without updating?
UPDATE: here is my css task (a bit simplified):
gulp.task('css', function () { ... return gulp.src('demo.scss') .pipe($.sass({ errLogToConsole: true })) .pipe(gulp.dest('./target/') .pipe(livereload()); });
source share