I'm using Basscss on a project and trying work out how to set up a task in Gulp that will refresh my browser when I make changes to my .scss file.
The current gulpfile.js looks like this and I was thinking of using Browser Sync to do this. Except I'm not sure how to implement this since this framework uses Swig templates.
I was thinking of doing something like this, but this doesn't seem to work.
var browserSync = require('browser-sync');
gulp.task('bs-reload', function () {
browserSync.reload();
});
gulp.task('watch-css', ['basswork', 'site-basswork', 'customizer-data'], function() {
gulp.watch([
'./src/**/*.css',
'./docs/src/css/**/*.css'],
['basswork', 'site-basswork', 'customizer-data', 'bs-reload']);
});
If anyone could lend any help to me regarding this, I'd really appreciate it.
Thanks in advance!