Closed kwolniak closed 10 years ago
You need to apply a filter before the stream hits reload
to only pass through files you want injecting. (in this case, .css
files) - use https://www.npmjs.org/package/gulp-filter to do this.
Thanks. Work like a charm!
.pipe(gulp.dest(tStyleDir))
.pipe(filter('**/*.css'))
.pipe(browserSync.reload({stream:true}))
Fancy doing a Pull Request on the Readme with that example? I think it'd be very helpful to others.
Browser is reload after css inject, is it necessary?
In gulpfile.js
In console: